Sha256: 0859c3e71aa52f12fea4fce296ab9664e421922f21ce737446ac2ccde0329239

Contents?: true

Size: 1.49 KB

Versions: 7

Compression:

Stored size: 1.49 KB

Contents

# Access Tokens Actions

Details on the various actions that can be performed on the
Access Tokens resource, including the expected
parameters and the potential responses.

##### Contents

*   [Get](#get)
*   [Post](#post)

<br/>

## Get

Returns the accessTokens for a user

```ruby
result = client.access_tokens.get(optional_params)

puts result
```

#### Available Parameters

No parameters needed for this call.

#### Successful Responses

| Code | Type | Description |
| ---- | ---- | ----------- |
| 200 | [Access Tokens](_schemas.md#access-tokens) | Collection of accessTokens |

#### Error Responses

| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](_schemas.md#error) | Error if malformed request |

<br/>

## Post

Create a new accessToken for a user

```ruby
result = client.access_tokens.post(accessToken: my_access_token)

puts result
```

#### Available Parameters

| Name | Type | Required | Description | Default | Example |
| ---- | ---- | -------- | ----------- | ------- | ------- |
| accessToken | [Access Token Post](_schemas.md#access-token-post) | Y | AccessToken information |  | [Access Token Post Example](_schemas.md#access-token-post-example) |

#### Successful Responses

| Code | Type | Description |
| ---- | ---- | ----------- |
| 201 | [Access Token](_schemas.md#access-token) | The successfully created accessToken |

#### Error Responses

| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](_schemas.md#error) | Error if malformed request |

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
losant_rest-1.0.8 docs/accessTokens.md
losant_rest-1.0.7 docs/accessTokens.md
losant_rest-1.0.6 docs/accessTokens.md
losant_rest-1.0.5 docs/accessTokens.md
losant_rest-1.0.4 docs/accessTokens.md
losant_rest-1.0.3 docs/accessTokens.md
losant_rest-1.0.2 docs/accessTokens.md