Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.