losant_rest 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.travis.yml +3 -2
- data/README.md +19 -8
- data/docs/_schemas.md +210 -184
- data/docs/application.md +20 -0
- data/docs/applicationApiToken.md +130 -0
- data/docs/applicationApiTokens.md +83 -0
- data/docs/applicationKey.md +15 -0
- data/docs/applicationKeys.md +10 -0
- data/docs/applications.md +10 -0
- data/docs/auditLog.md +5 -0
- data/docs/auditLogs.md +5 -0
- data/docs/auth.md +20 -8
- data/docs/dashboard.md +13 -0
- data/docs/dashboards.md +10 -0
- data/docs/data.md +10 -0
- data/docs/device.md +55 -0
- data/docs/deviceRecipe.md +20 -0
- data/docs/deviceRecipes.md +10 -0
- data/docs/devices.md +20 -0
- data/docs/event.md +15 -0
- data/docs/events.md +20 -0
- data/docs/flow.md +35 -0
- data/docs/flows.md +10 -0
- data/docs/me.md +61 -0
- data/docs/org.md +51 -0
- data/docs/orgInvites.md +6 -0
- data/docs/orgs.md +11 -0
- data/docs/solution.md +15 -0
- data/docs/solutionUser.md +15 -0
- data/docs/solutionUsers.md +10 -0
- data/docs/solutions.md +10 -0
- data/docs/webhook.md +15 -0
- data/docs/webhooks.md +10 -0
- data/lib/losant_rest.rb +2 -2
- data/lib/losant_rest/application.rb +24 -0
- data/lib/losant_rest/{access_token.rb → application_api_token.rb} +47 -23
- data/lib/losant_rest/{access_tokens.rb → application_api_tokens.rb} +27 -11
- data/lib/losant_rest/application_key.rb +18 -0
- data/lib/losant_rest/application_keys.rb +12 -0
- data/lib/losant_rest/applications.rb +12 -0
- data/lib/losant_rest/audit_log.rb +6 -0
- data/lib/losant_rest/audit_logs.rb +6 -0
- data/lib/losant_rest/auth.rb +20 -8
- data/lib/losant_rest/client.rb +8 -8
- data/lib/losant_rest/dashboard.rb +15 -0
- data/lib/losant_rest/dashboards.rb +12 -0
- data/lib/losant_rest/data.rb +12 -0
- data/lib/losant_rest/device.rb +66 -0
- data/lib/losant_rest/device_recipe.rb +24 -0
- data/lib/losant_rest/device_recipes.rb +12 -0
- data/lib/losant_rest/devices.rb +24 -0
- data/lib/losant_rest/event.rb +18 -0
- data/lib/losant_rest/events.rb +24 -0
- data/lib/losant_rest/flow.rb +42 -0
- data/lib/losant_rest/flows.rb +12 -0
- data/lib/losant_rest/me.rb +74 -0
- data/lib/losant_rest/org.rb +62 -0
- data/lib/losant_rest/org_invites.rb +6 -0
- data/lib/losant_rest/orgs.rb +14 -0
- data/lib/losant_rest/solution.rb +18 -0
- data/lib/losant_rest/solution_user.rb +18 -0
- data/lib/losant_rest/solution_users.rb +12 -0
- data/lib/losant_rest/solutions.rb +12 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhook.rb +18 -0
- data/lib/losant_rest/webhooks.rb +12 -0
- data/losant_rest.gemspec +3 -3
- data/schemas/{accessToken.json → apiToken.json} +31 -3
- data/schemas/{accessTokenPatch.json → apiTokenPatch.json} +4 -0
- data/schemas/applicationApiTokenPost.json +116 -0
- data/schemas/auditLog.json +3 -1
- data/schemas/auditLogFilter.json +3 -1
- data/schemas/auditLogs.json +3 -1
- data/schemas/event.json +4 -2
- data/schemas/events.json +4 -2
- metadata +17 -19
- data/.rbenv-version +0 -1
- data/docs/accessToken.md +0 -107
- data/docs/accessTokens.md +0 -68
- data/schemas/accessTokenPost.json +0 -32
- data/schemas/accessTokens.json +0 -65
- data/schemas/deviceState.json +0 -31
data/docs/application.md
CHANGED
@@ -23,6 +23,11 @@ result = client.application.delete(applicationId: my_application_id)
|
|
23
23
|
puts result
|
24
24
|
```
|
25
25
|
|
26
|
+
#### Authentication
|
27
|
+
The client must be configured with a valid api access token to call this
|
28
|
+
action. The token must include at least one of the following scopes:
|
29
|
+
all.Application, all.Organization, all.User, application.*, or application.delete.
|
30
|
+
|
26
31
|
#### Available Parameters
|
27
32
|
|
28
33
|
| Name | Type | Required | Description | Default | Example |
|
@@ -54,6 +59,11 @@ result = client.application.get(applicationId: my_application_id)
|
|
54
59
|
puts result
|
55
60
|
```
|
56
61
|
|
62
|
+
#### Authentication
|
63
|
+
The client must be configured with a valid api access token to call this
|
64
|
+
action. The token must include at least one of the following scopes:
|
65
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.get.
|
66
|
+
|
57
67
|
#### Available Parameters
|
58
68
|
|
59
69
|
| Name | Type | Required | Description | Default | Example |
|
@@ -87,6 +97,11 @@ result = client.application.patch(
|
|
87
97
|
puts result
|
88
98
|
```
|
89
99
|
|
100
|
+
#### Authentication
|
101
|
+
The client must be configured with a valid api access token to call this
|
102
|
+
action. The token must include at least one of the following scopes:
|
103
|
+
all.Application, all.Organization, all.User, application.*, or application.patch.
|
104
|
+
|
90
105
|
#### Available Parameters
|
91
106
|
|
92
107
|
| Name | Type | Required | Description | Default | Example |
|
@@ -119,6 +134,11 @@ result = client.application.payload_counts(applicationId: my_application_id)
|
|
119
134
|
puts result
|
120
135
|
```
|
121
136
|
|
137
|
+
#### Authentication
|
138
|
+
The client must be configured with a valid api access token to call this
|
139
|
+
action. The token must include at least one of the following scopes:
|
140
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.payloadCounts.
|
141
|
+
|
122
142
|
#### Available Parameters
|
123
143
|
|
124
144
|
| Name | Type | Required | Description | Default | Example |
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# Application Api Token Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Application Api Token resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Delete](#delete)
|
10
|
+
* [Get](#get)
|
11
|
+
* [Patch](#patch)
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
## Delete
|
16
|
+
|
17
|
+
Deletes an API Token
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
result = client.application_api_token.delete(
|
21
|
+
applicationId: my_application_id,
|
22
|
+
apiTokenId: my_api_token_id)
|
23
|
+
|
24
|
+
puts result
|
25
|
+
```
|
26
|
+
|
27
|
+
#### Authentication
|
28
|
+
The client must be configured with a valid api access token to call this
|
29
|
+
action. The token must include at least one of the following scopes:
|
30
|
+
all.Application, all.Organization, all.User, applicationApiToken.*, or applicationApiToken.delete.
|
31
|
+
|
32
|
+
#### Available Parameters
|
33
|
+
|
34
|
+
| Name | Type | Required | Description | Default | Example |
|
35
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
36
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
37
|
+
| apiTokenId | string | Y | ID associated with the API token | | 575ec7417ae143cd83dc4a95 |
|
38
|
+
|
39
|
+
#### Successful Responses
|
40
|
+
|
41
|
+
| Code | Type | Description |
|
42
|
+
| ---- | ---- | ----------- |
|
43
|
+
| 200 | [Success](_schemas.md#success) | If API token was successfully deleted |
|
44
|
+
|
45
|
+
#### Error Responses
|
46
|
+
|
47
|
+
| Code | Type | Description |
|
48
|
+
| ---- | ---- | ----------- |
|
49
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
50
|
+
| 404 | [Error](_schemas.md#error) | Error if API token was not found |
|
51
|
+
|
52
|
+
<br/>
|
53
|
+
|
54
|
+
## Get
|
55
|
+
|
56
|
+
Retrieves information on an API token
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
result = client.application_api_token.get(
|
60
|
+
applicationId: my_application_id,
|
61
|
+
apiTokenId: my_api_token_id)
|
62
|
+
|
63
|
+
puts result
|
64
|
+
```
|
65
|
+
|
66
|
+
#### Authentication
|
67
|
+
The client must be configured with a valid api access token to call this
|
68
|
+
action. The token must include at least one of the following scopes:
|
69
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationApiToken.*, or applicationApiToken.get.
|
70
|
+
|
71
|
+
#### Available Parameters
|
72
|
+
|
73
|
+
| Name | Type | Required | Description | Default | Example |
|
74
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
75
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
76
|
+
| apiTokenId | string | Y | ID associated with the API token | | 575ec7417ae143cd83dc4a95 |
|
77
|
+
|
78
|
+
#### Successful Responses
|
79
|
+
|
80
|
+
| Code | Type | Description |
|
81
|
+
| ---- | ---- | ----------- |
|
82
|
+
| 200 | [API Token](_schemas.md#api-token) | API token information |
|
83
|
+
|
84
|
+
#### Error Responses
|
85
|
+
|
86
|
+
| Code | Type | Description |
|
87
|
+
| ---- | ---- | ----------- |
|
88
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
89
|
+
| 404 | [Error](_schemas.md#error) | Error if API token was not found |
|
90
|
+
|
91
|
+
<br/>
|
92
|
+
|
93
|
+
## Patch
|
94
|
+
|
95
|
+
Updates information about an API token
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
result = client.application_api_token.patch(
|
99
|
+
applicationId: my_application_id,
|
100
|
+
apiTokenId: my_api_token_id,
|
101
|
+
apiToken: my_api_token)
|
102
|
+
|
103
|
+
puts result
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Authentication
|
107
|
+
The client must be configured with a valid api access token to call this
|
108
|
+
action. The token must include at least one of the following scopes:
|
109
|
+
all.Application, all.Organization, all.User, applicationApiToken.*, or applicationApiToken.patch.
|
110
|
+
|
111
|
+
#### Available Parameters
|
112
|
+
|
113
|
+
| Name | Type | Required | Description | Default | Example |
|
114
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
115
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
116
|
+
| apiTokenId | string | Y | ID associated with the API token | | 575ec7417ae143cd83dc4a95 |
|
117
|
+
| apiToken | [API Token Patch](_schemas.md#api-token-patch) | Y | Object containing new properties of the API token | | [API Token Patch Example](_schemas.md#api-token-patch-example) |
|
118
|
+
|
119
|
+
#### Successful Responses
|
120
|
+
|
121
|
+
| Code | Type | Description |
|
122
|
+
| ---- | ---- | ----------- |
|
123
|
+
| 200 | [API Token](_schemas.md#api-token) | Updated API token information |
|
124
|
+
|
125
|
+
#### Error Responses
|
126
|
+
|
127
|
+
| Code | Type | Description |
|
128
|
+
| ---- | ---- | ----------- |
|
129
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
130
|
+
| 404 | [Error](_schemas.md#error) | Error if API token was not found |
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Application Api Tokens Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Application Api Tokens resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Get](#get)
|
10
|
+
* [Post](#post)
|
11
|
+
|
12
|
+
<br/>
|
13
|
+
|
14
|
+
## Get
|
15
|
+
|
16
|
+
Returns the API tokens for an application
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
result = client.application_api_tokens.get(applicationId: my_application_id)
|
20
|
+
|
21
|
+
puts result
|
22
|
+
```
|
23
|
+
|
24
|
+
#### Authentication
|
25
|
+
The client must be configured with a valid api access token to call this
|
26
|
+
action. The token must include at least one of the following scopes:
|
27
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationApiTokens.*, or applicationApiTokens.get.
|
28
|
+
|
29
|
+
#### Available Parameters
|
30
|
+
|
31
|
+
| Name | Type | Required | Description | Default | Example |
|
32
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
33
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
34
|
+
|
35
|
+
#### Successful Responses
|
36
|
+
|
37
|
+
| Code | Type | Description |
|
38
|
+
| ---- | ---- | ----------- |
|
39
|
+
| 200 | [API Token](_schemas.md#api-token) | Collection of API tokens |
|
40
|
+
|
41
|
+
#### Error Responses
|
42
|
+
|
43
|
+
| Code | Type | Description |
|
44
|
+
| ---- | ---- | ----------- |
|
45
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
46
|
+
|
47
|
+
<br/>
|
48
|
+
|
49
|
+
## Post
|
50
|
+
|
51
|
+
Create a new API token for an application
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
result = client.application_api_tokens.post(
|
55
|
+
applicationId: my_application_id,
|
56
|
+
apiToken: my_api_token)
|
57
|
+
|
58
|
+
puts result
|
59
|
+
```
|
60
|
+
|
61
|
+
#### Authentication
|
62
|
+
The client must be configured with a valid api access token to call this
|
63
|
+
action. The token must include at least one of the following scopes:
|
64
|
+
all.Application, all.Organization, all.User, applicationApiTokens.*, or applicationApiTokens.post.
|
65
|
+
|
66
|
+
#### Available Parameters
|
67
|
+
|
68
|
+
| Name | Type | Required | Description | Default | Example |
|
69
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
70
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
71
|
+
| apiToken | [Application API Token Post](_schemas.md#application-api-token-post) | Y | API token information | | [Application API Token Post Example](_schemas.md#application-api-token-post-example) |
|
72
|
+
|
73
|
+
#### Successful Responses
|
74
|
+
|
75
|
+
| Code | Type | Description |
|
76
|
+
| ---- | ---- | ----------- |
|
77
|
+
| 201 | [API Token](_schemas.md#api-token) | The successfully created API token |
|
78
|
+
|
79
|
+
#### Error Responses
|
80
|
+
|
81
|
+
| Code | Type | Description |
|
82
|
+
| ---- | ---- | ----------- |
|
83
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
data/docs/applicationKey.md
CHANGED
@@ -24,6 +24,11 @@ result = client.application_key.delete(
|
|
24
24
|
puts result
|
25
25
|
```
|
26
26
|
|
27
|
+
#### Authentication
|
28
|
+
The client must be configured with a valid api access token to call this
|
29
|
+
action. The token must include at least one of the following scopes:
|
30
|
+
all.Application, all.Organization, all.User, applicationKey.*, or applicationKey.delete.
|
31
|
+
|
27
32
|
#### Available Parameters
|
28
33
|
|
29
34
|
| Name | Type | Required | Description | Default | Example |
|
@@ -58,6 +63,11 @@ result = client.application_key.get(
|
|
58
63
|
puts result
|
59
64
|
```
|
60
65
|
|
66
|
+
#### Authentication
|
67
|
+
The client must be configured with a valid api access token to call this
|
68
|
+
action. The token must include at least one of the following scopes:
|
69
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationKey.*, or applicationKey.get.
|
70
|
+
|
61
71
|
#### Available Parameters
|
62
72
|
|
63
73
|
| Name | Type | Required | Description | Default | Example |
|
@@ -93,6 +103,11 @@ result = client.application_key.patch(
|
|
93
103
|
puts result
|
94
104
|
```
|
95
105
|
|
106
|
+
#### Authentication
|
107
|
+
The client must be configured with a valid api access token to call this
|
108
|
+
action. The token must include at least one of the following scopes:
|
109
|
+
all.Application, all.Organization, all.User, applicationKey.*, or applicationKey.patch.
|
110
|
+
|
96
111
|
#### Available Parameters
|
97
112
|
|
98
113
|
| Name | Type | Required | Description | Default | Example |
|
data/docs/applicationKeys.md
CHANGED
@@ -21,6 +21,11 @@ result = client.application_keys.get(applicationId: my_application_id)
|
|
21
21
|
puts result
|
22
22
|
```
|
23
23
|
|
24
|
+
#### Authentication
|
25
|
+
The client must be configured with a valid api access token to call this
|
26
|
+
action. The token must include at least one of the following scopes:
|
27
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationKeys.*, or applicationKeys.get.
|
28
|
+
|
24
29
|
#### Available Parameters
|
25
30
|
|
26
31
|
| Name | Type | Required | Description | Default | Example |
|
@@ -60,6 +65,11 @@ result = client.application_keys.post(
|
|
60
65
|
puts result
|
61
66
|
```
|
62
67
|
|
68
|
+
#### Authentication
|
69
|
+
The client must be configured with a valid api access token to call this
|
70
|
+
action. The token must include at least one of the following scopes:
|
71
|
+
all.Application, all.Organization, all.User, applicationKeys.*, or applicationKeys.post.
|
72
|
+
|
63
73
|
#### Available Parameters
|
64
74
|
|
65
75
|
| Name | Type | Required | Description | Default | Example |
|
data/docs/applications.md
CHANGED
@@ -21,6 +21,11 @@ result = client.applications.get(optional_params)
|
|
21
21
|
puts result
|
22
22
|
```
|
23
23
|
|
24
|
+
#### Authentication
|
25
|
+
The client must be configured with a valid api access token to call this
|
26
|
+
action. The token must include at least one of the following scopes:
|
27
|
+
all.Organization, all.Organization.read, all.User, all.User.read, applications.*, or applications.get.
|
28
|
+
|
24
29
|
#### Available Parameters
|
25
30
|
|
26
31
|
| Name | Type | Required | Description | Default | Example |
|
@@ -57,6 +62,11 @@ result = client.applications.post(application: my_application)
|
|
57
62
|
puts result
|
58
63
|
```
|
59
64
|
|
65
|
+
#### Authentication
|
66
|
+
The client must be configured with a valid api access token to call this
|
67
|
+
action. The token must include at least one of the following scopes:
|
68
|
+
all.Organization, all.User, applications.*, or applications.post.
|
69
|
+
|
60
70
|
#### Available Parameters
|
61
71
|
|
62
72
|
| Name | Type | Required | Description | Default | Example |
|
data/docs/auditLog.md
CHANGED
@@ -22,6 +22,11 @@ result = client.audit_log.get(
|
|
22
22
|
puts result
|
23
23
|
```
|
24
24
|
|
25
|
+
#### Authentication
|
26
|
+
The client must be configured with a valid api access token to call this
|
27
|
+
action. The token must include at least one of the following scopes:
|
28
|
+
all.Organization, all.Organization.read, all.User, all.User.read, auditLog.*, or auditLog.get.
|
29
|
+
|
25
30
|
#### Available Parameters
|
26
31
|
|
27
32
|
| Name | Type | Required | Description | Default | Example |
|
data/docs/auditLogs.md
CHANGED
@@ -20,6 +20,11 @@ result = client.audit_logs.get(orgId: my_org_id)
|
|
20
20
|
puts result
|
21
21
|
```
|
22
22
|
|
23
|
+
#### Authentication
|
24
|
+
The client must be configured with a valid api access token to call this
|
25
|
+
action. The token must include at least one of the following scopes:
|
26
|
+
all.Organization, all.Organization.read, all.User, all.User.read, auditLogs.*, or auditLogs.get.
|
27
|
+
|
23
28
|
#### Available Parameters
|
24
29
|
|
25
30
|
| Name | Type | Required | Description | Default | Example |
|
data/docs/auth.md
CHANGED
@@ -15,7 +15,7 @@ parameters and the potential responses.
|
|
15
15
|
|
16
16
|
## Authenticate Device
|
17
17
|
|
18
|
-
Authenticates a device using the provided credentials
|
18
|
+
Authenticates a device using the provided credentials.
|
19
19
|
|
20
20
|
```ruby
|
21
21
|
result = client.auth.authenticate_device(credentials: my_credentials)
|
@@ -23,6 +23,9 @@ result = client.auth.authenticate_device(credentials: my_credentials)
|
|
23
23
|
puts result
|
24
24
|
```
|
25
25
|
|
26
|
+
#### Authentication
|
27
|
+
No api access token is required to call this action.
|
28
|
+
|
26
29
|
#### Available Parameters
|
27
30
|
|
28
31
|
| Name | Type | Required | Description | Default | Example |
|
@@ -33,7 +36,7 @@ puts result
|
|
33
36
|
|
34
37
|
| Code | Type | Description |
|
35
38
|
| ---- | ---- | ----------- |
|
36
|
-
| 200 | [Authenticated Device](_schemas.md#authenticated-device) | Successful authentication |
|
39
|
+
| 200 | [Authenticated Device](_schemas.md#authenticated-device) | Successful authentication. The included api access token has the scope 'all.Device'. |
|
37
40
|
|
38
41
|
#### Error Responses
|
39
42
|
|
@@ -46,7 +49,7 @@ puts result
|
|
46
49
|
|
47
50
|
## Authenticate Solution User
|
48
51
|
|
49
|
-
Authenticates a solution user using the provided credentials
|
52
|
+
Authenticates a solution user using the provided credentials.
|
50
53
|
|
51
54
|
```ruby
|
52
55
|
result = client.auth.authenticate_solution_user(credentials: my_credentials)
|
@@ -54,11 +57,14 @@ result = client.auth.authenticate_solution_user(credentials: my_credentials)
|
|
54
57
|
puts result
|
55
58
|
```
|
56
59
|
|
60
|
+
#### Authentication
|
61
|
+
No api access token is required to call this action.
|
62
|
+
|
57
63
|
#### Available Parameters
|
58
64
|
|
59
65
|
| Name | Type | Required | Description | Default | Example |
|
60
66
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
61
|
-
| credentials | [User Credentials](_schemas.md#user-credentials) | Y | Solution user authentication credentials | | [User Credentials Example](_schemas.md#user-credentials-example) |
|
67
|
+
| credentials | [User Credentials](_schemas.md#user-credentials) | Y | Solution user authentication credentials. The included api access token has the scope 'all.SolutionUser'. | | [User Credentials Example](_schemas.md#user-credentials-example) |
|
62
68
|
|
63
69
|
#### Successful Responses
|
64
70
|
|
@@ -77,7 +83,7 @@ puts result
|
|
77
83
|
|
78
84
|
## Authenticate User
|
79
85
|
|
80
|
-
Authenticates a user using the provided credentials
|
86
|
+
Authenticates a user using the provided credentials.
|
81
87
|
|
82
88
|
```ruby
|
83
89
|
result = client.auth.authenticate_user(credentials: my_credentials)
|
@@ -85,6 +91,9 @@ result = client.auth.authenticate_user(credentials: my_credentials)
|
|
85
91
|
puts result
|
86
92
|
```
|
87
93
|
|
94
|
+
#### Authentication
|
95
|
+
No api access token is required to call this action.
|
96
|
+
|
88
97
|
#### Available Parameters
|
89
98
|
|
90
99
|
| Name | Type | Required | Description | Default | Example |
|
@@ -95,7 +104,7 @@ puts result
|
|
95
104
|
|
96
105
|
| Code | Type | Description |
|
97
106
|
| ---- | ---- | ----------- |
|
98
|
-
| 200 | [Authenticated User](_schemas.md#authenticated-user) | Successful authentication |
|
107
|
+
| 200 | [Authenticated User](_schemas.md#authenticated-user) | Successful authentication. The included api access token has the scope 'all.User'. |
|
99
108
|
|
100
109
|
#### Error Responses
|
101
110
|
|
@@ -108,7 +117,7 @@ puts result
|
|
108
117
|
|
109
118
|
## Authenticate User Github
|
110
119
|
|
111
|
-
Authenticates a user via GitHub OAuth
|
120
|
+
Authenticates a user via GitHub OAuth.
|
112
121
|
|
113
122
|
```ruby
|
114
123
|
result = client.auth.authenticate_user_github(oauth: my_oauth)
|
@@ -116,6 +125,9 @@ result = client.auth.authenticate_user_github(oauth: my_oauth)
|
|
116
125
|
puts result
|
117
126
|
```
|
118
127
|
|
128
|
+
#### Authentication
|
129
|
+
No api access token is required to call this action.
|
130
|
+
|
119
131
|
#### Available Parameters
|
120
132
|
|
121
133
|
| Name | Type | Required | Description | Default | Example |
|
@@ -126,7 +138,7 @@ puts result
|
|
126
138
|
|
127
139
|
| Code | Type | Description |
|
128
140
|
| ---- | ---- | ----------- |
|
129
|
-
| 200 | [Authenticated User](_schemas.md#authenticated-user) | Successful authentication |
|
141
|
+
| 200 | [Authenticated User](_schemas.md#authenticated-user) | Successful authentication. The included api access token has the scope 'all.User'. |
|
130
142
|
|
131
143
|
#### Error Responses
|
132
144
|
|