Created
February 7, 2012 18:14
-
-
Save jcleblanc/1761057 to your computer and use it in GitHub Desktop.
index file for PP Access OAuth 2 sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once "common.php"; | |
| $auth_url = sprintf("%s?scope=%s&response_type=code&redirect_uri=%s&client_id=%s", | |
| AUTHORIZATION_ENDPOINT, | |
| urlencode("https://identity.x.com/xidentity/resources/profile/me"), | |
| urlencode(CALLBACK_URL), | |
| KEY); | |
| //forward user to PayPal auth page | |
| header("Location: $auth_url"); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment