2012-09-05

01:58 <Loqi> http://twitter.com/karinehaucolas :: #Gamingonstreet jouer à Pac-Man dans les rues ? MapAttack transforme la ville en terrain de jeu grâce à la géoloc /RA http://t.co/JbJ7fAka
07:39 <merrihew> Is there a way to use the user API to search for a given user by the extra data provided during user creation?
08:18 <merrihew> And I may be missing a major point, but is it not necessary to explicitly add a user to a trigger?
08:43 <aaronpk> merrihew: there is currently no search, but it's on the roadmap for users and places, etc
08:44 <aaronpk> merrihew: you do need to explicitly subscribe users to a layer
08:50 <merrihew> aaronpk What API method do you use to subscribe them?
08:51 <merrihew> Sorry, missed the important part of subscribing to the layer, not the trigger
08:52 <merrihew> So if you want to have a trigger around a certain point on the map, you need to create a place, then add that place to a layer, then subscribe the user to the layer, then create a trigger for the layer?
08:53 <merrihew> Is there a way to just subscribe the user to a place?
08:53 <aaronpk> if you don't need other users to be able to run the trigger, then you can just create the trigger for the user using their own access token
08:55 <merrihew> When a user is created anonymously on the system, how do you run commands "for the user using their own access token" from the main server?
08:55 <aaronpk> you'll need to know their ID, or the application can get a list of users it has created
08:57 <merrihew> So I am able to get the user ID, but how do I then use this to add a user to a trigger? I think I am missing the part where I need to create the access token for the user?
08:58 <aaronpk> if you are making the API call as the application, then you can specify a user_id to the layer/subscribe API call: http://developers.geoloqi.com/api/layer/subscribe/:id
08:58 <aaronpk> so you don't need the user's access token in that case
08:59 <merrihew> But just to be clear, is there a way to get an OAuth token for a specific user programmatically from the API?
09:03 patrickarlt joined #geoloqi
09:05 <aaronpk> merrihew: yes, that's the "assertion" grant type, see: http://developers.geoloqi.com/api/oauth/token
10:07 <merrihew> aaronpk Thanks for the help. I couldn't quite understand the workflow (since it sometimes requires application tokens and sometimes user tokens) but I think I got it now. I can't seem to understand why some requests allow you to use an application token and others seem to only work with client_id & client_secret.
10:09 <aaronpk> merrihew: yes, sorry for the confusion. The pattern is any of the user/* and oauth/* methods must use the client ID and secret directly, everything else uses the application or user tokens
10:09 <merrihew> How is the proper way to send id/secret using the nodejs api?
10:10 <merrihew> (which it looks like you wrote :) )
10:10 patrickarlt joined #geoloqi
10:10 <aaronpk> i think I had the last commit, kyledrake wrote it originally :)
10:11 <aaronpk> ah, actually looks like it needs a bit of updating
10:13 <patrickarlt> aaronpk: what are the appcelerator plan ids
10:15 <merrihew> aaronpk Just saw you listed, sorry kyledrake
10:18 <merrihew> So how would I authenticate using client_id/client_secret?
10:19 <aaronpk> it looks like the node.js module doesn't have a way to do that right now, since it just does it explicitly in the "authorize()" method
10:19 <merrihew> new geoloqi.Session({client_id: 'aaa', client_secret: 'bbb'}) doesn't seem to work
10:20 <merrihew> ahh
10:20 <aaronpk> It needs to be able to send the client ID and secret in an HTTP header on certain requests, but I don't see it doing that in the code
10:20 <merrihew> Am I SOL for user/* methods using the nodejs module?
10:21 <aaronpk> for now, you'd have to do the request manually
10:21 <aaronpk> it's just using the "https" library internally, so you can use that directly
10:22 <merrihew> gotcha, will do
10:22 <aaronpk> you'd set it to a string like this: client_id+':'+client_secret
11:20 <kyledrake> hello!
11:52 caseorganic joined #geoloqi
18:06 kyledrake joined #geoloqi
19:31 patrickarlt joined #geoloqi
20:00 patrickarlt joined #geoloqi
20:44 <Loqi> http://twitter.com/geoloqi :: Startup crawl at @geoloqi HQ tomorrow night starting at 6pm in Portland! http://t.co/UAPQrmTx Part of @pdxconf!
20:44 <Loqi> http://twitter.com/caseorganic :: Want to see the new @geoloqi HQ? We're having a startup crawl tomorrow night at 6pm in Portland! http://t.co/l6ElUPOX Part of @pdxconf!
21:14 <Loqi> http://twitter.com/caseorganic :: @helloerica Stop by anyway! Send me a DM or text when you arrive. We'll let you into @geoloqi around 6:30pm!
22:04 kyledrake joined #geoloqi
22:58 kyledrak_ joined #geoloqi
23:49 kyledrake joined #geoloqi
23:58 kyledrak_ joined #geoloqi