2012-05-16

00:08 rknLA joined #geoloqi
08:26 blk joined #geoloqi
08:50 <nohorse> I'd like to be a Cyborg Anthropologist when i grow up.
09:15 punjabiace joined #geoloqi
09:15 <punjabiace> Hi there, I had a question regarding your api console
09:17 <punjabiace> im trying to make a create api call, but im getting an error 403 ''access denied"
09:28 <@kenhowardpdx> geoloqi allows you to build an app with GPS #wvpdx
09:30 <aaronpk> punjabiace: I'd be happy to help
09:31 <aaronpk> what API method are you running?
09:31 kyledrake joined #geoloqi
09:32 <punjabiace> I'm trying to run trigger/create
09:33 <aaronpk> ok it looks like you're sending the wrong place ID
09:33 <aaronpk> oh I see, actually just take out place_id from the request and it should work.
09:33 <punjabiace> i tried it without a place_id parameter , and it seemed to work
09:33 <punjabiace> ya
09:34 <punjabiace> so my question now is, how do i get that trigger to work so it sends my device a push notification when i enter the radius?
09:34 <aaronpk> are you using our Geoloqi app or making your own app with our SDK?
09:35 <punjabiace> making my own app
09:35 <punjabiace> with the SDL
09:35 <punjabiace> SDK*
09:36 <aaronpk> ok, you'll need to make sure you've gone through the push notification configuration setup here http://developers.geoloqi.com/ios/push-notifications
09:36 <aaronpk> and then you'll need to sign in to your app with the same account you are logged in to the website
09:37 <punjabiace> ok thanks aaron, will update later
09:38 <aaronpk> you're welcome!
09:38 <punjabiace> o hold on, im developing an android app
09:38 <aaronpk> oh! ok that makes it easier :)
09:38 <aaronpk> we don't have a tutorial written for android push yet, but it's pretty easy, go to the application edit screen and there should be a button to authorize your google account for push
09:48 caseorganic joined #geoloqi
10:31 starbuckt joined #geoloqi
12:02 <@cayasso> Building a Location-Based Science Trivia Game with Geoloqi at Science Hack Day, San Francisco https://t.co/D3vwEpU6
12:09 starbuckt joined #geoloqi
13:28 starbuckt joined #geoloqi
13:45 <aaronpk> starbuckt: punjabiace is having some trouble with the android SDK, trying to use layer/subscribe/:id
13:45 <aaronpk> "the onsuccess listener doesn't get called, neither does onfailure, but oncomplete does"
13:45 <punjabiace> hey starbuckt
13:45 <starbuckt> hello
13:46 <starbuckt> punjabiace: the onComplete callback will fire if the request completed, but the server returned a non-200 response. Try adding this to your onComplete callback:
13:46 <starbuckt> Log.d("MyTag", EntityUtils.toString(response.getEntity()));
13:47 <starbuckt> That will log the response to logcat and you can see what the server is returning. It should contain a more specific error message.
13:47 <punjabiace> i was going to ask also, the oauth_token, is that the app access one we get when creating the app, or is there another way we get that constant ?
13:48 <aaronpk> the oauth token is for the user that was created on the phone
13:48 <starbuckt> punjabiace: the SDK should automatically sign the request for you
13:49 <punjabiace> ok im getting access denied to this layer
13:50 <punjabiace> hm do i have to set the current layer?
13:50 <aaronpk> ok that probably means the layer was not marked as "public"
13:50 <aaronpk> when you make the layer, make sure the "public" hceckbox is checked
13:52 <punjabiace> sigh i didnt even realise there was a gui for the layers -_- i've been using the api console to deal with them
13:54 <punjabiace> ok getting the same error
13:55 <starbuckt> punjabiace: the layer is now marked as public?
13:55 <punjabiace> yep
13:56 <starbuckt> Are you using the session from the background service? Did you do something like: "service.getSession();"
13:56 <aaronpk> ah, you ahve to replace :id with the actual layer ID
13:57 <starbuckt> That would help too, if you're not already doing so :)
13:57 <aaronpk> (this is not the first time people have had this problem with the docs, we might consider changing that on the site...)
13:57 <punjabiace> yep that did it
13:57 <punjabiace> haha
13:58 <aaronpk> great
13:58 caseorganic joined #geoloqi
13:59 <starbuckt> aaronpk: there is an example request using curl
14:01 <punjabiace> ok one last question before i head home for the day, sorry guys
14:01 <starbuckt> no worries
14:01 <punjabiace> when im sending a message is there a way to send it every user id?
14:01 <aaronpk> yes, you can do that through the groups API
14:02 <punjabiace> lol brilliant, thanks
14:20 <@alexgcampbell> Good article: Why Geo-Fencing Might Just Change the World http://t.co/qqIubAQY
14:28 FrankP joined #geoloqi
14:46 caseorganic joined #geoloqi
15:26 caseorganic joined #geoloqi
16:30 caseorganic joined #geoloqi
16:50 caseorganic joined #geoloqi
17:21 starbuckt joined #geoloqi
18:07 caseorganic joined #geoloqi
18:08 kyledrake joined #geoloqi
18:16 <@laprice> Follow the track of the Ride of Silence in #eugene http://t.co/btKNuX0P
18:18 kyledrake joined #geoloqi
18:40 kyledrake joined #geoloqi
19:33 kyledrake joined #geoloqi
19:55 blk joined #geoloqi
21:50 rknLA_ joined #geoloqi
22:00 rknLA_ joined #geoloqi
22:06 caseorganic joined #geoloqi
22:30 caseorganic joined #geoloqi
22:41 caseorganic joined #geoloqi