Url = Request Authentication token

"; echo "
    "; echo "
  1. Click on Link above
  2. "; echo "
  3. Enter the Amazon WorkDocs site name. Note that it is case sensitive.
  4. "; echo "
  5. Login to your Amazon WorkDocs site
  6. "; echo "
  7. To Grant or deny your application access to Amazon WorkDocs, select Accept
  8. "; echo "
  9. Copy the URL you are taken
  10. "; echo "
  11. Save the string after access_token= and region=
  12. "; echo "
"; echo "

For more information about Authentication and Access Control for User Applications see "; echo ""; echo "Amazon WorkDocs Developer Guide

"; $guzzle = new httpClient([ 'base_uri' => $url ]); $response = $guzzle->request('GET'); // snippet-end:[workdocs.php.get_authorization_token.main] // snippet-end:[workdocs.php.get_authorization_token.complete] // snippet-sourceauthor:[jschwarzwalder (AWS)]