Skip to content

dem-net/SketchFabApi.Net

Repository files navigation

SketchFabApi.Net

SketchFab exporter for any GLB model

See it live on https://elevationapi.com by exporting to SketchFab and sharing your models to the World!

Operations

Model

// Upload model
Task<SketchFabUploadResponse> UploadModelAsync(UploadModelRequest request, string sketchFabToken)

// Get model information
Task<Model> GetModelAsync(string modelId)

// Get all models as an enumerable (fetches though pages)
IAsyncEnumerable<Model> GetMyModelsAsync(string sketchFabToken, TokenType tokenType)

// Get model ready state
Task<bool> IsReadyAsync(string modelId)

Account

// Retrieves account information
Task<Account> GetMyAccountAsync(string sketchFabToken, TokenType tokenType)

Collections

// Get user's collections
Task<List<Collection>> GetMyCollectionsAsync(string sketchFabToken, TokenType tokenType)

// Add model to collection
Task AddModelToCollectionAsync(string collectionId, string sketchFabToken, TokenType tokenType, params string[] modelIds)

Work in progress, I'll let you know when it's ready

  • Upload model
  • Update model
  • Add model to a collection
  • Get my models, (with generic paging)