Skip to end of metadata
Go to start of metadata
<?php
$this->_config = array(
'authorize_endpoint'=> 'https://api.actionstep.com/api/oauth/authorize',
'token_endpoint' => 'https://api.actionstep.com/api/oauth/token',
'client_id' => {YOUR CLIENT_ID},
'client_secret' => {YOUR CLIENT_SECRET},
'redirect_uri' => {URI YOU WANT ACTIONSTEP TO REDIRECT THE USER TO ONCE AUTHORIZED},
'scope' => {THE SCOPE YOU ARE REQUESTING ACCESS TO (COMMA SEPARATED LIST OF RESOURCES - i.e. Actions,Participants,Timerecords)},
'cookies' => array()
);
ApiClient::authorize($this->_config);
<?php
// Convert to Access Token
$response = ApiClient::tokenAuthorizationCode($this->_config, $_GET['code']);
// Store the Access Token
$_SESSION['oauth2_tokendata'] = $response;
// Redirect to application to execute API requests
$this->redirect({URI TO YOUR APPLICATION});