forked from jjgleim/eventbrite.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoauth2-example.html
More file actions
40 lines (39 loc) · 1.83 KB
/
Copy pathoauth2-example.html
File metadata and controls
40 lines (39 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="http://evbdn.eventbrite.com/s3-production/35362ce/django/images/icons/favicon.ico" />
<style type="text/css">
.eb_login_box{
margin: 5px auto;
border: 1px solid lightGrey;
width: 162px;
padding: 0px 16px;
}
</style>
<title>Eventbrite.jquery.js OAuth2 Login Widget Example</title>
</head>
<body>
<h1>Eventbrite.jquery.js OAuth2 Login Widget</h1>
<div class='eb_login_box'>
Loading...
</div>
<hr/>
<a href="http://developer.eventbrite.com/news/branding/"><img src="http://evbdn.eventbrite.com/s3-s3/static/images/django/logos/eb_powered.png"/></a>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.js"></script>
<script type="text/javascript" src="js/Eventbrite.jquery.js"></script>
<script type="text/javascript">
// Eventbrite OAuth Client interaction example
// For this example to work on YOUR host:
// 1. You will need to update your API Key's redirect_uri, pointing it to the public url where your Eventbrite Login Widget is available.
// 2. You will also need to set YOUR app_key on the following line:
// 3. Eventbrite recommends that you keep your users' access_tokens secret. Do not expose them to other users.
$(document).ready(function(){
// for more information about how to use this widget see https://github.com/ryanjarvinen/Eventbrite.jquery.js/blob/master/OAUTH2-README.md
Eventbrite.prototype.widget.login({'app_key': 'GBJ3VLMXCMWUBVFLOA'}, function(widget_html){
// Place the resulting Eventbrite login widget code somewhere on your page.
// This example places the content into an element marked with class="eb_login_box"
$('.eb_login_box').html(widget_html);
});
});
</script>
</body>