Difference between revisions of "Personal/Test OAuth Token Generation"
From Active911 Documentation Wiki
Jonathan.woo (Talk | contribs) (→Accessing the API) |
Jonathan.woo (Talk | contribs) |
||
Line 5: | Line 5: | ||
This does not require pre-registration of a developer account. | This does not require pre-registration of a developer account. | ||
− | You must use the | + | You must use the Active911 OAuth Generation page to generate an access token and a refresh token. |
==Setup== | ==Setup== | ||
− | #Go to https:// | + | #Go to https://www.active911.com/interface/dev/oauth_gen.php |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ==Generating | + | ==Generating a refresh token== |
− | # | + | #Select/deselect the scopes you want to apply to the tokens you are generating. This is a space delimited list of one or more of [[OAuth Scopes|these scopes]] |
− | #Click the " | + | #Click the "Submit" button. You should be brought to a page which will allow you to select which Agency you want to generate the tokens for. |
#Select an Agency and click 'Submit'. After selecting an agency, you will be prompted to confirm your authorization. | #Select an Agency and click 'Submit'. After selecting an agency, you will be prompted to confirm your authorization. | ||
#Click 'Yes'. | #Click 'Yes'. | ||
− | #After confirming your authorization, you will be brought back to the | + | #After confirming your authorization, you will be brought back to the OAuth page where the Access Token and Refresh token will be shown |
==Accessing the API== | ==Accessing the API== | ||
− | # | + | #Click "Use this in the api" |
− | # | + | #The Access token and Refresh token you generated should be autofilled |
− | #Start with the url "https://access.active911.com/interface/open_api/api/" | + | #Start with the url "https://access.active911.com/interface/open_api/api/" |
#Other API calls can be found [[Accessing the API|here]] | #Other API calls can be found [[Accessing the API|here]] |
Revision as of 16:57, 3 July 2014
These directions allow a user to generate a set of tokens for use with the Active911 Developer API
Users can generate Oauth Tokens codes for personal use as long as they have Edit Agency permission for that agency.
This does not require pre-registration of a developer account.
You must use the Active911 OAuth Generation page to generate an access token and a refresh token.
Setup
Generating a refresh token
- Select/deselect the scopes you want to apply to the tokens you are generating. This is a space delimited list of one or more of these scopes
- Click the "Submit" button. You should be brought to a page which will allow you to select which Agency you want to generate the tokens for.
- Select an Agency and click 'Submit'. After selecting an agency, you will be prompted to confirm your authorization.
- Click 'Yes'.
- After confirming your authorization, you will be brought back to the OAuth page where the Access Token and Refresh token will be shown
Accessing the API
- Click "Use this in the api"
- The Access token and Refresh token you generated should be autofilled
- Start with the url "https://access.active911.com/interface/open_api/api/"
- Other API calls can be found here