Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

i should think before i commit

  • Loading branch information...
commit 2dbc917931d47f26b1745490163baf7997eb64ba 1 parent 4b74c3e
@quickredfox quickredfox authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 README.md
View
13 README.md
@@ -48,12 +48,17 @@ QuickExample
$.Marelle( FSQUARE_CLIENT_ID ).done( function( M ){
// grab an authentication promise
var authpromise = M.authenticateVisitor();
- // handle logged-in user
- var authsuccess = function(user){
+ // handle logged-in visitor
+ var authsuccess = function(visitor){
M.signoutButton( document.body );
- console.log(user)
+ console.log(visitor)
+ /*
+ I think the single entry point is through the visitor
+ */
+ venuepromise = visitor.getVenues()
+ // venuepromise.then etc..etc...
};
- // handle non user
+ // handle non visitor
var authfailure = function() {
M.signinButton( document.body );
};
Please sign in to comment.
Something went wrong with that request. Please try again.