Constructor
new ApiWay(authopt, apiBaseopt)
Create a new ApiWay.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
auth |
Requestable.auth
|
<optional> |
the credentials to authenticate to ApiWay. If auth is not provided requests will be made unauthenticated |
|
apiBase |
string
|
<optional> |
https://api.apiway.io |
the base ApiWay API URL |
Methods
getInstance(instanceopt) → {Instance}
Create a new Instance wrapper
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
instance |
string
|
<optional> |
the id of the instance to get information about leave undefined for the authenticated user |
Returns:
- Type:
-
Instance
getProject(fullNameopt) → {Project}
Create a new Project wrapper
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
fullName |
string
|
<optional> |
the name of the project to get information about leave undefined for the authenticated user |
Returns:
- Type:
-
Project
getSchedule(scheduleIdopt) → {Schedule}
Create a new Schedule wrapper
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
scheduleId |
string
|
<optional> |
the id of the instance to get information about leave undefined for the authenticated user |
Returns:
- Type:
-
Schedule