Skip to content

Instantly share code, notes, and snippets.

@pingyen
Created August 25, 2016 13:33
Show Gist options
  • Save pingyen/ba1dc0a4939ba3ca06e9fc6d70e37b63 to your computer and use it in GitHub Desktop.
Save pingyen/ba1dc0a4939ba3ca06e9fc6d70e37b63 to your computer and use it in GitHub Desktop.
AppFigures OAuth 2.0 Request Token PHP Example
<?php
define('CLIENT_KEY', 'abcdef0123456789abcdef0123456789');
define('SECRECT_KEY', '9876543210fedcba9876543210fedcba');
parse_str(
file_get_contents('https://api.appfigures.com/v2/oauth/request_token?oauth_consumer_key=' . CLIENT_KEY . '&oauth_callback=oob&oauth_signature_method=PLAINTEXT&oauth_signature=' . SECRECT_KEY . '%26'),
$output
);
print_r($output);
/* https://api.appfigures.com/v2/oauth/authorize?oauth_token= */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment