2013-02-27

00:16 patrickarlt joined #geoloqi
00:53 patrickarlt joined #geoloqi
01:30 patrickarlt joined #geoloqi
02:06 patrickarlt joined #geoloqi
02:43 patrickarlt joined #geoloqi
03:20 patrickarlt joined #geoloqi
03:57 patrickarlt joined #geoloqi
04:21 se7h joined #geoloqi
04:34 patrickarlt joined #geoloqi
04:36 nest joined #geoloqi
04:41 nest joined #geoloqi
05:11 patrickarlt joined #geoloqi
05:16 patrickarlt joined #geoloqi
05:50 patrickarlt joined #geoloqi
05:54 se7h joined #geoloqi
06:29 patrickarlt joined #geoloqi
07:06 patrickarlt joined #geoloqi
07:56 patrickarlt joined #geoloqi
08:39 se7h joined #geoloqi
08:54 Dspriggs joined #geoloqi
09:10 caseorganic joined #geoloqi
10:40 patricka_ joined #geoloqi
11:05 patrickarlt joined #geoloqi
11:30 caseorga_ joined #geoloqi
12:18 FrankP joined #geoloqi
12:43 patricka_ joined #geoloqi
13:16 se7h joined #geoloqi
13:26 kyledrak_ joined #geoloqi
13:31 kyledrake joined #geoloqi
15:14 patrickarlt joined #geoloqi
16:59 anudeep joined #geoloqi
17:00 <anudeep> hello
17:00 <aaronpk> hello
17:00 <anudeep> I am a developer at a company looking for information on how to set user accounts when integrating Geoloqi
17:01 <anudeep> currently I am using the anonymous user creation
17:01 <anudeep> which gives a user id generated from Geoloqi sdk
17:02 <anudeep> good morning Aaron
17:02 <aaronpk> evening here :)
17:02 <aaronpk> what are you trying to do?
17:03 <anudeep> I want to send location based push notifications
17:03 <anudeep> based on triggers
17:03 <aaronpk> ok great
17:03 <anudeep> but they require user_id
17:04 <anudeep> which currently is auto generated when I create anonymous users
17:05 <aaronpk> when you create triggers, you create them in a layer. then the user needs to subscribe to the layer and they'll get the notification
17:06 <anudeep> is there a way the user ids get registered with Geoloqi
17:06 <aaronpk> not sure what you mean
17:06 <anudeep> when creating users by createAnonymousUserAccountWithUserInfo
17:07 <anudeep> I cannot see the user ids
17:07 <anudeep> on Geoloqi dev site
17:07 <anudeep> and they seem to change over a period of time
17:07 <aaronpk> if you make an API call as your application to http://developers.geoloqi.com/api/user/list you should see all the users there
17:07 <aaronpk> every time you re-install the app you'll get a new user ID
17:08 <aaronpk> have you seen our dinodeals demo app? https://github.com/geoloqi/DinoDeals
17:08 <anudeep> I will have a look now
17:09 <anudeep> I tried using the call http://developers.geoloqi.com/api/user/list
17:09 <anudeep> but did not get any user ids back
17:09 <anudeep> from API console
17:10 <anudeep> I get this error
17:10 <anudeep> { "error_code": "400 Bad Request", "error": "invalid_client", "error_description": "No client credentials provided, or invalid client" }
17:11 <aaronpk> oh... you may actually need to do that from the command line
17:11 <anudeep> ohh
17:12 <aaronpk> see the "example request" on the user/list doc page
17:12 <anudeep> the problem is accessing the user list will be done by my client
17:12 <anudeep> so he will not be able to use ruby
17:12 <aaronpk> you'll need to write some sort of web interface for it
17:12 <anudeep> ohh ok
17:12 <aaronpk> that web interface can make the API call to geoloqi's api
17:13 <anudeep> so that is the only possible way to get user_id list for a particular application
17:14 <aaronpk> if you're trying to get a list of all users in an app, then yes you'll need a server to make that API call
17:15 <anudeep> ok
17:15 <anudeep> got it
17:15 <anudeep> thanks a lot
17:15 patrickarlt joined #geoloqi
17:16 <anudeep> also I wanted to ask is there any way to send a broadcast message to all user_ids
17:16 <anudeep> ?
17:17 <aaronpk> you can do that through the group APIs
17:18 <anudeep> ok
17:21 <anudeep> so in the use case where I create users by createAnonymousUserAccountWithUserInfo and I want to send broadcast messages to all of them depending upon their location
17:21 <anudeep> there has to be a web interface layer between the mobile device and Geoloqi servers
17:21 <anudeep> ?
17:23 <aaronpk> no, for that you can use the group APIs
17:23 <aaronpk> if all the users join the same group, then any of the users can run group/message to send a msesage to everyone
17:24 <anudeep> can anonymous users be set to join a group id?
17:24 <aaronpk> yes
17:25 <aaronpk> anonymous just means there is no email address on the account
17:25 <anudeep> ohh ok
17:25 <anudeep> got it
17:26 <anudeep> so I can create anonymous users with createAnonymousUserAccountWithUserInfo:(NSDictionary *)extraData key:(NSString *)key layerIds:(NSArray *)layerIds groupTokens:(NSArray *)groupTokens completion:(void (^)(LQSession *session, NSError *error))block;
17:26 <anudeep> and pass in the group ids and then send broadcast messages
17:28 <aaronpk> yes, if you pass in a group token when you create the user, then you can send a message to all users in the group
17:28 <anudeep> ok
17:28 <anudeep> that solves my problem
17:28 <aaronpk> great
17:29 <anudeep> since then there will not be a web interface
17:29 <aaronpk> so the group/message API has nothing to do with geotriggers or geofences, is that what you intend?
17:30 <anudeep> at last I want to send messages based on user locations
17:30 <anudeep> so I will have to create geotriggers
17:31 shanghan joined #geoloqi
17:31 <anudeep> and those can only be done via a web interface to call Geoloqi servers with trigger/create call
17:31 <anudeep> ?
17:39 <aaronpk> you can do a trigger/create call from a device
17:39 <aaronpk> but then it will only work for that one device
17:40 <aaronpk> if you want to configure just one master list of triggers that all devices will get, then yes you'll need a server
17:41 patrickarlt joined #geoloqi
17:43 <anudeep> ok
17:43 <anudeep> the second one is what I am looking for
17:44 <anudeep> 1 last question
17:44 <anudeep> I do not see any user_id parameter
17:44 <anudeep> how are the user_ids associated with triggers?
17:45 <aaronpk> when you create a trigger, you create it in a layer
17:45 <aaronpk> so you create a layer with a bunch of triggers, and then all the users can subscribe to the layer
17:47 <anudeep> ok
17:47 <anudeep> got it
17:47 <anudeep> thanks a lot for your help
17:47 <anudeep> it really cleared a lot of things for me
17:47 <aaronpk> great, you're welcome
17:48 <anudeep> have a good evening
17:48 <anudeep> :)
17:48 <aaronpk> thanks, have a good day!
17:50 anudeep joined #geoloqi
17:54 patrickarlt joined #geoloqi
19:52 patrickarlt joined #geoloqi
20:48 patrickarlt joined #geoloqi
22:28 hsoj joined #geoloqi