BaseApi
Interfaces
SuccessResponse
SuccessResponse
Members
The User
that this API is associated with.
apiUrl : string
apiUrl : string
The base URL of this API.
Methods
constructor(user, apiUrl)
constructor(user, apiUrl)
This should only get called by classes that inherit the BaseApi
class.
user
should be an instance of theUser
object.apiUrl
should be the base API URL.
async request(url, method = 'get', data = null, cachePrefix = null)
async request(url, method = 'get', data = null, cachePrefix = null)
Preform an authenticated request to the API.
Last updated