Skip to content

Instantly share code, notes, and snippets.

@melvinmt
Created March 1, 2011 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvinmt/849349 to your computer and use it in GitHub Desktop.
Save melvinmt/849349 to your computer and use it in GitHub Desktop.
<?php
require_once('Tinypayme.php');
$t = new Tinypayme($mashape_api_key);
$redirect_uri = 'http://example.com/path/to/process.php';
$permission = 'create_items';
$request = $t->getOAuthPermission($marketplace_id, $redirect_uri, $permission);
$redirect_url = $request->result->oauth_url;
header('Location: '.$redirect_url);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment