Skip to content
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.

just enough to get started using browser oauth2 authentication

Notifications You must be signed in to change notification settings

meetuparchive/oauth2-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meetup oauth2 sdk starter kit

Prior to doing this, you'll need to get your Meetup Consumer Key at: https://secure.meetup.com/meetup_api/oauth_consumers/ As well, you'll need to test this on a server that resolves to the "Redirect URI" specified on your configured OAuth Consumer

Example usage (for latest working example see index.html)

<html>
  <head>
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="mu.api.js"></script>
    <script type="text/javascript">
      api = mu.Api({
        clientId: "YOUR_MEETUP_CONSUMER_KEY"
        , onMember: function(member, token) {
          alert("we're in");
        }
      };
      $("#login").click(function(e) {
        e.preventDefault();
        api.login();
        return false;
      })
      $("#logout").click(function(e){
        e.preventDefault();
        api.logout(function(){
          alert("all clear");
        });
        return false;
      });
  });
  </head>
  <body></body>
</html>

About

just enough to get started using browser oauth2 authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published