Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/brizy-pro   php

Repository URL to install this package:

Version: 2.3.7 

/ campaignmonitor / createsend-php / samples / authentication / get_authorize_url.php

<?php

require_once '../../csrest_general.php';

$client_id = 8998879;
$redirect_uri = 'http://example.com/auth';
$scope = 'ViewReports,CreateCampaigns,SendCampaigns';
$state = 'some state data';

$authorize_url = CS_REST_General::authorize_url($client_id, $redirect_uri, $scope, $state);

echo "Redirect your users to: ".$authorize_url."\n<br />";