Hierarchy

  • ThingiverseClient

Constructors

Properties

_appToken: string = ""
_bearerToken: string = ""
_clientId: string = ""
_clientSecret: string = ""
_fetch: (<T>(this: ThingiverseClient, method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", url: string, bodyArgs?: undefined | {
    [k: string]: any;
}) => Promise<HttpResponse<T>>) = fetchIt

Type declaration

    • <T>(this: ThingiverseClient, method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", url: string, bodyArgs?: undefined | {
          [k: string]: any;
      }): Promise<HttpResponse<T>>
    • Type Parameters

      • T

      Parameters

      • this: ThingiverseClient
      • method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"
      • url: string
      • bodyArgs: undefined | {
            [k: string]: any;
        } = undefined

      Returns Promise<HttpResponse<T>>

_server: "staging" | "production" = "staging"
_urls: {
    production: string;
    staging: string;
} = ...

Type declaration

  • production: string
  • staging: string
addThingToCollection: ((this: ThingiverseClient, collectionId: string, thingId: string, description?: string) => Promise<HttpResponse<unknown>>) = Collection.addThingToCollection

Type declaration

category: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Category>>) = Category.category

Type declaration

categoryThings: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Thing[]>>) = Category.categoryThings

Type declaration

collection: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Collection>>) = Collection.collection

Type declaration

collectionThings: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Thing[]>>) = Collection.collectionThings

Type declaration

comment: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment>>) = Comments.comment

Type declaration

copies: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<any>>) = Copies.copies

Type declaration

copyComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment[]>>) = Copies.copyComments

Type declaration

copyImages: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThingImage[]>>) = Copies.copyImages

Type declaration

copyRootComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment[]>>) = Copies.copyRootComments

Type declaration

copyThreadedComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThreadedComments>>) = Copies.copyThreadedComments

Type declaration

createThing: ((this: ThingiverseClient, params: CreateThing) => Promise<HttpResponse<Thing>>) = Thing.createThing

Type declaration

deleteCollection: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Collection.deleteCollection

Type declaration

deleteComment: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Comments.deleteComment

Type declaration

deleteCopy: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Copies.deleteCopy

Type declaration

deleteCopyImage: ((this: ThingiverseClient, copyId: string, imageId: string) => Promise<HttpResponse<unknown>>) = Copies.deleteCopyImage

Type declaration

deleteThing: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Thing.deleteThing

Type declaration

deleteThingFile: ((this: ThingiverseClient, id: string, fileId: string) => Promise<HttpResponse<unknown>>) = Thing.deleteThingFile

Type declaration

deleteThingImage: ((this: ThingiverseClient, id: string, imageId: string) => Promise<HttpResponse<unknown>>) = Thing.deleteThingImage

Type declaration

deleteUser: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<undefined>>) = User.deleteUser

Type declaration

downloadFile: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Files.downloadFile

Type declaration

files: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThingFile>>) = Files.file

Type declaration

finalizeFile: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThingFile>>) = Files.finalizeFile

Type declaration

followUser: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<unknown>>) = User.followUser

Type declaration

groupTopic: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = GroupTopic.groupTopic

Type declaration

groupTopicComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment[]>>) = GroupTopic.groupTopicComments

Type declaration

groupTopicThreadedComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThreadedComments>>) = GroupTopic.groupTopicThreadedComments

Type declaration

like: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Thing.like

Type declaration

likeCopy: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Copies.likeCopy

Type declaration

newCollection: ((this: ThingiverseClient, name: string, description: string) => Promise<HttpResponse<Collection>>) = Collection.newCollection

Type declaration

newComment: ((this: ThingiverseClient, targetId: string, targetType: "thing" | "make", body: string) => Promise<HttpResponse<unknown>>) = Comments.newComment

Type declaration

patchCopy: ((this: ThingiverseClient, id: string, description: string) => Promise<HttpResponse<unknown>>) = Copies.patchCopy

Type declaration

patchCopyImage: ((this: ThingiverseClient, copyId: string, imageId: string, rank: number, featured: boolean) => Promise<HttpResponse<unknown>>) = Copies.patchCopyImage

Type declaration

pinGroupTopic: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = GroupTopic.pinGroupTopic

Type declaration

postComment: ((this: ThingiverseClient) => string) = Copies.postComment

Type declaration

postCommentOnThing: ((this: ThingiverseClient) => string) = Thing.postCommentOnThing

Type declaration

postGroupTopicComment: ((this: ThingiverseClient, id: string, body: string) => Promise<HttpResponse<Comment[]>>) = GroupTopic.postGroupTopicComment

Type declaration

publishThing: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Thing>>) = Thing.publishThing

Type declaration

removeCopyLike: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Copies.removeCopyLike

Type declaration

removeLike: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<unknown>>) = Thing.removeLike

Type declaration

removeThingFromCollection: ((this: ThingiverseClient, collectionId: string, thingId: string) => Promise<HttpResponse<unknown>>) = Collection.removeThingFromCollection

Type declaration

replies: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment[]>>) = Comments.replies

Type declaration

replyToComment: ((this: ThingiverseClient, id: string, body: string) => Promise<HttpResponse<unknown>>) = Comments.replyToComment

Type declaration

searchUserThings: ((this: ThingiverseClient, username: string, searchTerm: string) => Promise<HttpResponse<Paginated<PartialThing>>>) = User.searchUserThings

Type declaration

tag: ((this: ThingiverseClient, tag: string) => Promise<HttpResponse<Tag>>) = Tags.tag

Type declaration

thing: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Thing>>) = Thing.thing

Type declaration

thingAncestors: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Thing[]>>) = Thing.thingAncestors

Type declaration

thingCategories: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Category[]>>) = Thing.thingCategories

Type declaration

thingComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment[]>>) = Thing.thingComments

Type declaration

thingCopies: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<PartialThing[]>>) = Thing.thingCopies

Type declaration

thingDerivatives: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Thing[]>>) = Thing.thingDerivatives

Type declaration

thingFiles: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThingFile[]>>) = Thing.thingFiles

Type declaration

thingImages: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<ThingImage[]>>) = Thing.thingImages

Type declaration

thingLikedUsers: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Creator[]>>) = Thing.thingLikedUsers

Type declaration

thingPrints: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<any[]>>) = Thing.thingPrints

Type declaration

thingRootComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Comment[]>>) = Thing.thingRootComments

Type declaration

thingTags: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Tag[]>>) = Thing.thingTags

Type declaration

thingThreadedComments: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<any>>) = Thing.thingThreadedComments

Type declaration

thingTrackingViews: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<undefined>>) = Thing.thingTrackingViews

Type declaration

thingsByTag: ((this: ThingiverseClient, tag: string) => Promise<HttpResponse<Thing[]>>) = Tags.thingsByTag

Type declaration

toggleWatchThing: ((this: ThingiverseClient, id: string) => Promise<HttpResponse<Watching>>) = Thing.toggleWatchThing

Type declaration

unfollowUser: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<unknown>>) = User.unfollowUser

Type declaration

updateCollection: ((this: ThingiverseClient, id: string, name: string, description: string) => Promise<HttpResponse<unknown>>) = Collection.updateCollection

Type declaration

updateComment: ((this: ThingiverseClient, id: string, body: string) => Promise<HttpResponse<unknown>>) = Comments.updateComment

Type declaration

updateCoverImage: ((this: ThingiverseClient) => string) = User.updateCoverImage

Type declaration

updateGroupTopic: ((this: ThingiverseClient, id: string, name: string, body: string) => Promise<HttpResponse<unknown>>) = GroupTopic.updateGroupTopic

Type declaration

updateThing: ((this: ThingiverseClient, id: string, params: UpdateThing) => Promise<HttpResponse<Thing>>) = Thing.updateThing

Type declaration

updateThingImage: ((this: ThingiverseClient) => string) = Thing.updateThingImage

Type declaration

updateUser: ((this: ThingiverseClient, username: string, userDetails: PatchUserDetails) => Promise<HttpResponse<User>>) = User.updateUser

Type declaration

updateUserAvatarImage: ((this: ThingiverseClient) => string) = User.updateUserAvatarImage

Type declaration

uploadCopy: ((this: ThingiverseClient) => string) = Thing.uploadCopy

Type declaration

uploadFileToThing: ((this: ThingiverseClient) => string) = Thing.uploadFileToThing

Type declaration

user: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<User>>) = User.user

Type declaration

userCollectedThings: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<Thing[]>>) = User.userCollectedThings

Type declaration

userCollections: ((this: ThingiverseClient, username: string, all?: boolean) => Promise<HttpResponse<Collection[]>>) = User.userCollections

Type declaration

userCopies: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<any[]>>) = User.userCopies

Type declaration

userDownloadedThings: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<Thing[]>>) = User.userDownloadedThings

Type declaration

userEventCount: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<unknown>>) = User.userEventCount

Type declaration

userFavoriteThings: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<Thing[]>>) = User.userFavoriteThings

Type declaration

userLikedThings: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<Thing[]>>) = User.userLikedThings

Type declaration

userThings: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<Thing[]>>) = User.userThings

Type declaration

userUnreadMessageCount: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<UnreadMessageCount>>) = User.userUnreadMessageCount

Type declaration

userVerificationEmail: ((this: ThingiverseClient, username: string) => Promise<HttpResponse<unknown>>) = User.userVerificationEmail

Type declaration

Methods

Generated using TypeDoc