Difference between revisions of "CMU OAUTH PHP CLASS"

From CMU ITSC Network
Line 29: Line 29:
 
|}
 
|}
 
=== setAppId ===
 
=== setAppId ===
 +
set Client ID
 +
{| class="wikitable"
 +
|+ style="text-align:left;"|Description
 +
|-
 +
|setAppId(string $appid)
 +
|}
 +
 +
{| class="wikitable"
 +
|+ style="text-align:left;"|Parameters
 +
|-
 +
|name || description
 +
|-
 +
|appid
 +
|cmu oauth Client ID
 +
|}
 +
 +
{| class="wikitable"
 +
|+ style="text-align:left;"|Return Values
 +
|-
 +
| no return value
 +
|}
 
== Examples ==
 
== Examples ==
 
== Download ==
 
== Download ==

Revision as of 11:06, 24 September 2017

Method

Constructor

Set Client ID, Client Secret, Redirect URI

Description
__construct([string $appId, string $clientSecret, string $redirectURI])
Parameters
name description
appId cmu oauth Client ID
clientSecret cmu oauth Client Secret
redirectURI cmu oauth Redirect URI
Return Values
no return value

setAppId

set Client ID

Description
setAppId(string $appid)
Parameters
name description
appid cmu oauth Client ID
Return Values
no return value

Examples

Download

cmu.oauth.class.php.zip

Reference

https://oauth.cmu.ac.th
https://tools.ietf.org/html/rfc6749