01:15 <Loqi> https://twitter.com/geoloqi :: RT @EsriPDX: The Next Web Europe 2013 - Thursday Apr 25 http://thenextweb.com/conference/europe/ with @kenichi_pdx
08:52 Loqi joined #geoloqi
09:18 Doogs joined #geoloqi
09:19 caseorganic joined #geoloqi
09:58 <Doogs> Friends in portland.... having a problem with some basics today. In regards to "layer/subscribe/:layer_id" the documentation says "If no user ID is provided, then the authenticating user will subscribe to the layer. If you provide an application access token, you can get your application to subscribe users it has created to the layer."
10:00 <aaronpk> oh? what's the issue?
10:01 <Doogs> If i created a Droid application based off the Tracker sample and plugged in my AppID created on the geoloqi site, my next step is that I want to get push notifications
10:01 <Doogs> I went though the steps to get the Google Cloud Messaging...
10:03 <aaronpk> are you getting any GCM registration errors or anything? or is it successfully getting a GCM token?
10:04 <Doogs> I was thinking all I need to do to get push notifications working would be to use CURL with a token sharing the same AppId as my registered app and layer and then do a layer/subscribe... is this correct... or do I need to write some logic in my application to create a user and add more logic to have that user do layer/subscribe
10:04 <Doogs> I don't think I am seeing any GCM errors...
10:05 <aaronpk> do you mean push notifications in response to a trigger, or just push notifications directly?
10:06 <Doogs> ha... i really don't know the difference ... I just want to take my app outside and see a push notification ... based on a trigger I created with the same AppId being consumed in my Droid App... does that make sense?
10:06 <aaronpk> ah yep
10:07 <aaronpk> so if the device is making the API request to layer/subscribe/:layer_id then it will subscribe that device
10:07 <aaronpk> the deviec will create a user account when it first launches
10:07 <Doogs> Essentially... I need to still subscribe to my layer.... but is there anything else I need to take care off ... so I can see the TOAST...
10:10 <Doogs> ok... "so if the device is making the API request to layer/subscribe/:layer_id then it will subscribe that device..." I missed that line in the IRC chat
10:11 <Doogs> So the question is ... using the Droid tracker sample ... do write the logic to subscribe ... or can I do this in CURL somehow (just by using the same AppID as the token)...?
10:16 <aaronpk> you could use curl, but you'd need either the device's access token or the user ID the device genereates
10:19 <Doogs> gotcha
10:19 <Doogs> thanks aaron!
10:19 <aaronpk> np!
10:26 patrickarlt joined #geoloqi
11:02 caseorga_ joined #geoloqi
11:16 jerrysv joined #geoloqi
11:17 <jerrysv> Doogs: i'm usually on freenode as either jerrysv or jerrysv_ - or also on official corporate irc :)
11:17 <Doogs> I have my device id ...so now I want to create a layer so I can subscribe to it and get push notifications for each trigger.... does this look right for layer creation using device id?
11:17 <Doogs> curl -v -H "Accept: application/json" -H "Authorization: OAuth <my-device-id>" -X POST -d '{"name":"Support","latitude":34.05649,"longitude":-117.19570,"radius":500}' https://api.geoloqi.com/1/layer/create
11:17 <Doogs> oh you were already there...
11:17 <Doogs> nice
11:17 <aaronpk> you don't need lat/lng/radius for layer/create,
11:17 <jerrysv> Doogs: wasn't, just popped in :)
11:18 <aaronpk> first make the layer, then create triggers on the layer which is where the lat/lng/radius go
11:18 <Doogs> ok so this...
11:18 <Doogs> curl -v -H "Accept: application/json" -H "Authorization: OAuth <my-device-id>" -X POST -d '{"name":"Support"}' https://api.geoloqi.com/1/layer/create
11:19 <Doogs> is my-device-id correct here?
11:19 <aaronpk> it's actually access token
11:21 <Doogs> access token ... so that's what I thought originally... which is obtained via my Applicaitons profile on geology.com
11:22 <Doogs> ha... not geology.com :)
11:22 <aaronpk> yep
11:22 <aaronpk> autocorrect :)
11:25 <Doogs> ok so hopefully last question... its appid for layer creation and it deviceid when subscribing... like this...
11:26 <Doogs> curl -v -H "Accept: application/json" -H "Authorization: OAuth <my-device-id>" -X POST -d '{"user_id":"<my-device-id"}' https://api.geoloqi.com/1/layer/subscribe/<layer-id>
11:26 <Doogs> would you clarify... this... and then I am going to do these tests
11:27 <Doogs> my bad like this
11:27 <Doogs> curl -v -H "Accept: application/json" -H "Authorization: OAuth <my-device-id>" -X POST -d '{"user_id":"<my-app-id"}' https://api.geoloqi.com/1/layer/subscribe/<layer-id>
11:27 <Doogs> grr typo again
11:27 <Doogs> like this....
11:27 <Doogs> curl -v -H "Accept: application/json" -H "Authorization: OAuth <my-app-id>" -X POST -d '{"user_id":"<my-device-id"}' https://api.geoloqi.com/1/layer/subscribe/<layer-id>
11:27 <Doogs> to subscribe
11:31 <aaronpk> mostly yes except instead of my-app-id it's my-app-access-token
11:42 <Doogs> got it.. I will work on the naming and terms...
11:58 <Doogs> Strange I get a 404 error when I run subscribe... my URL seems correct... --url https://api.geoloqi.com/1/layer/subscribe/6iXk
11:59 <aaronpk> 404? not 403 or something?
11:59 <aaronpk> oh, add public: 1 when you make the layer
12:00 <Doogs> yeah... {"error":"not_found","error_code":404,"error_description":"Not Found"}* Closing connection
12:00 <Doogs> ok
12:00 <Doogs> add public when I create layer... will do
12:00 <aaronpk> yea you'll need that anyway, but odd about the 404 error!
12:00 caseorganic joined #geoloqi
12:00 <aaronpk> let me know if it fixes it in the mean time
12:07 <Doogs> no... still 404 and the layer is public --- http://geoloqi.com/layers/6ibY
12:26 patricka_ joined #geoloqi
12:27 patricka_ joined #geoloqi
13:31 patrickarlt joined #geoloqi
14:45 <Loqi> https://twitter.com/scottjenson :: @Threadbare I think you might be thinking of @geoloqi, they have used that term before wrt geo location and automatic functionality
16:09 patricka_ joined #geoloqi
18:20 patrickarlt joined #geoloqi
18:45 patrickarlt joined #geoloqi
19:01 patrickarlt joined #geoloqi
21:24 caseorganic joined #geoloqi
23:36 here joined #geoloqi