Methods
Static
create
- create<T>(data, params?): AxiosPromise<default<T>>
Parameters
data: object
Optional
params: Record<string, any>
Returns AxiosPromise<default<T>>
Promise
Static
createWithBlob
- createWithBlob<T>(blob, data?): AxiosPromise<default<T>>
Parameters
blob: Blob
Optional
data: object
Returns AxiosPromise<default<T>>
promise
Static
createWithFile
- createWithFile<T>(file, data?): AxiosPromise<default<T>>
Parameters
file: File
Optional
data: object
Returns AxiosPromise<default<T>>
promise
Static
createWithFileInChunks
- createWithFileInChunks<T>(file, chunkSize?, data?): Promise<AxiosPromise<default<T>>>
Parameters
file: File
chunkSize: number = ...
data: {
[key: string]: any;
} = {}
Returns Promise<AxiosPromise<default<T>>>
Promise
Static
delete
- delete<T>(post_id, params?): AxiosPromise<default<T>>
Parameters
post_id: string
Optional
params: Record<string, any>
Returns AxiosPromise<default<T>>
promise
Static
list
- list<T>(params?): AxiosPromise<default<T>>
Parameters
Optional
params: Record<string, any>
Returns AxiosPromise<default<T>>
promise
Static
toggleInteraction
- toggleInteraction<T>(post_id, data, params?): AxiosPromise<default<T>>
Parameters
post_id: string
data: object
Optional
params: Record<string, any>
Returns AxiosPromise<default<T>>
Promise
Static
update
- update<T>(post_id, data, params?): AxiosPromise<default<T>>
Parameters
post_id: string
data: object
Optional
params: Record<string, any>
Returns AxiosPromise<default<T>>
promise
Static
view
- view<T>(post_id, params?): AxiosPromise<default<T>>
Parameters
post_id: string
Optional
params: Record<string, any>
Returns AxiosPromise<default<T>>
promise
Create a new post.