Request object for an oAuth accesstoken code.
| Name | Type | Description | Notes |
|---|---|---|---|
| client_id | str | Client Id assigned to 3rd party applications. Contact support@sensorpush.com to register you app. | [optional] |
| client_secret | str | Password associated with the client_id | [optional] |
| code | str | This can be an authorization, access, or refresh token. Depending on which grant_type you are using. | [optional] |
| grant_type | str | Accepted values are password, refresh_token, and access_token | [optional] |
| password | str | User's password | [optional] |
| redirect_uri | str | Redirection url to the 3rd party application once the user has signed into the sensorpush logon. This value should be URL encoded. | [optional] |
| refresh_token | str | Refresh token used to request new access tokens. | [optional] |
| username | str | Email of the user to sign in. | [optional] |
from sensorpush_api.models.token_request import TokenRequest
# TODO update the JSON string below
json = "{}"
# create an instance of TokenRequest from a JSON string
token_request_instance = TokenRequest.from_json(json)
# print the JSON string representation of the object
print TokenRequest.to_json()
# convert the object into a dict
token_request_dict = token_request_instance.to_dict()
# create an instance of TokenRequest from a dict
token_request_from_dict = TokenRequest.from_dict(token_request_dict)