Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
oauth_2-0_client_php
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
bashofmann
2010-08-10 17:06:23 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd0cea9180f5594a0ac2ef40c9e1d0b7051efdd5
cd0cea91
1 parent
921b0947
removed not needed js stuff from example
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
example.php
example.php
View file @
cd0cea9
...
...
@@ -44,7 +44,6 @@ $token = $dataStore->retrieveAccessToken();
?>
<html>
<head>
<script
type=
"text/javascript"
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
></script>
</head>
<body>
Consumer Key:
<input
type=
"text"
id=
"consumer-key"
value=
"
<?=
$client
->
getClientKey
()
?>
"
/><br
/>
...
...
@@ -53,16 +52,8 @@ $token = $dataStore->retrieveAccessToken();
Refresh Token:
<input
type=
"text"
id=
"refresh-token"
value=
"
<?=
$token
->
getRefreshToken
()
?>
"
/><br
/>
LifeTime:
<input
type=
"text"
id=
"lifetime"
value=
"
<?=
$token
->
getLifeTime
()
?>
"
/><br
/>
<br
/>
<a
href=
"
javascript:;
"
id=
"authorize"
>
authorize
</a><br
/>
<a
href=
"
example.php?action=authorize
"
id=
"authorize"
>
authorize
</a><br
/>
<br
/>
<a
href=
"javascript:;"
id=
"request-api"
>
request API
</a><br
/>
<script
type=
"text/javascript"
>
$
(
'#authorize'
).
click
(
function
()
{
window
.
location
.
href
=
'index.php?action=authorize'
;
});
$
(
'#request-api'
).
click
(
function
()
{
window
.
location
.
href
=
'index.php?action=requestApi'
;
});
</script>
<a
href=
"example.php?action=requestApi"
id=
"request-api"
>
request API
</a><br
/>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment