SDK Reference
@proveanything/smartlinks
npm install @proveanything/smartlinks
View on npm →Namespaces
Other
http
Functions for http operations
5 functions0 types
get
Perform a GET request to any API endpoint. const fields = await http.get<FieldDefinition[]>('/public/config/fields')
public
get(path: string) → Promise<T>post
Perform a POST request to any API endpoint. const result = await http.post('/public/app/eticket/uploadTickets', { collectionId, productId, appId, data, })
public
post(path: string, body: any) → Promise<T>put
Perform a PUT request to any API endpoint.
public
put(path: string, body: any) → Promise<T>patch
Perform a PATCH request to any API endpoint.
public
patch(path: string, body: any) → Promise<T>del
Perform a DELETE request to any API endpoint.
public
del(path: string) → Promise<T>