the blizzard api in oauth form
Switch branches/tags
Nothing to show
Clone or download
Ulminia Update README.md
issue with code change
Latest commit 792f437 Oct 1, 2018
Permalink
Failed to load latest commit information.
GrantType First commit Aug 23, 2014
ext account update Jan 29, 2018
Client.php
README.md Update README.md Sep 30, 2018
index.php

README.md

blizzard-api-oauth

version 1.4

This application will use the blizzard api with oauth setting more info to come

How to use

Please See The Wiki... it explanes all the new calls.....

To make a Secure call the script cal be called as so

if (!isset($_GET['code']))
{

	$auth_url = $client->getAuthenticationUrl($client->baseurl[$client->region]['AUTHORIZATION_ENDPOINT'], $client->redirect_uri);
	header('Location: ' . $auth_url);
	die('Redirect');
}
else
{
	$params = array('code' => $_GET['code'], 'auth_flow' => 'auth_code', 'redirect_uri' => $client->redirect_uri);
	$response = $client->getAccessToken($client->baseurl[$client->region]['TOKEN_ENDPOINT'], 'authorization_code', $params);
	$client->setAccessToken($response['result']['access_token']);
	$response = $client->fetch('account',array('source'=>'account'));
	echo '<pre>';
	print_r($response);
	echo '</pre>';
}