Properties
Protected
_appToken
_appToken: string = ""
Protected
_bearerToken
_bearerToken: string = ""
Protected
_clientId
_clientId: string = ""
Protected
_clientSecret
_clientSecret: string = ""
Protected
_fetch
_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>>
-
Parameters
-
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"
-
url: string
-
bodyArgs: undefined | {
[k: string]: any;
} = undefined
Protected
_server
_server: "staging" | "production" = "staging"
Protected
_urls
_urls: {
production: string;
staging: string;
} = ...
Type declaration
-
production: string
-
staging: string
addThingToCollection
add
Thing
To
Collection
: ((this
: ThingiverseClient, collectionId
: string, thingId
: string, description
?: string) => Promise<HttpResponse<unknown>>) = Collection.addThingToCollection
Type declaration
-
- (this: ThingiverseClient, collectionId: string, thingId: string, description?: string): Promise<HttpResponse<unknown>>
-
Parameters
-
-
collectionId: string
-
thingId: string
-
description: string = ""
Returns Promise<HttpResponse<unknown>>
groupTopicThreadedComments
newComment
new
Comment
: ((this
: ThingiverseClient, targetId
: string, targetType
: "thing" | "make", body
: string) => Promise<HttpResponse<unknown>>) = Comments.newComment
Type declaration
-
-
Parameters
-
-
targetId: string
-
targetType: "thing" | "make"
-
body: string
Returns Promise<HttpResponse<unknown>>
patchCopyImage
patch
Copy
Image
: ((this
: ThingiverseClient, copyId
: string, imageId
: string, rank
: number, featured
: boolean) => Promise<HttpResponse<unknown>>) = Copies.patchCopyImage
Type declaration
-
- (this: ThingiverseClient, copyId: string, imageId: string, rank: number, featured: boolean): Promise<HttpResponse<unknown>>
-
Parameters
-
-
copyId: string
-
imageId: string
-
rank: number
-
featured: boolean
Returns Promise<HttpResponse<unknown>>
postGroupTopicComment
post
Group
Topic
Comment
: ((this
: ThingiverseClient, id
: string, body
: string) => Promise<HttpResponse<Comment[]>>) = GroupTopic.postGroupTopicComment
removeThingFromCollection
remove
Thing
From
Collection
: ((this
: ThingiverseClient, collectionId
: string, thingId
: string) => Promise<HttpResponse<unknown>>) = Collection.removeThingFromCollection
updateCollection
update
Collection
: ((this
: ThingiverseClient, id
: string, name
: string, description
: string) => Promise<HttpResponse<unknown>>) = Collection.updateCollection
updateGroupTopic
update
Group
Topic
: ((this
: ThingiverseClient, id
: string, name
: string, body
: string) => Promise<HttpResponse<unknown>>) = GroupTopic.updateGroupTopic
updateUserAvatarImage
update
User
Avatar
Image
: ((this
: ThingiverseClient) => string) = User.updateUserAvatarImage