Skip to content

Instantly share code, notes, and snippets.

@jcleblanc
Created February 7, 2012 18:14
Show Gist options
  • Select an option

  • Save jcleblanc/1761057 to your computer and use it in GitHub Desktop.

Select an option

Save jcleblanc/1761057 to your computer and use it in GitHub Desktop.
index file for PP Access OAuth 2 sample
<?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