Page 1 of 1

Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 3:45 pm
by Bad Addy

Rather than get the info from the device ID which can change on iOS is there a way to get the info.

I have tried to get it with a WHERE statement, as I have the device _id added to the users collection.


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 3:45 pm
by Bad Addy

"status":"400 Bad Request",
"url":"https://api.appery.io/rest/push/reg/",
"response":{
"code":"PNDR007",
"description":"Device id must be string"

That is the error, but I am not looking for the ID, but the collection _id ?


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 3:47 pm
by Bad Addy

This is the where clause '{"_id ": "530f552be4707b0d8013fd1a"}'


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 3:56 pm
by Illya Stepanov

Can you show how you are making the request?


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 3:59 pm
by Bad Addy

I have tried afew ways:

https://api.appery.io/rest/push/reg/ + Where clause as above

https://api.appery.io/rest/1/db/devic...

https://api.appery.io/rest/1/db/devices + Where clause as above

None worked


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 4:08 pm
by Illya Stepanov

Can you post a screenshot of settings and request parameters?
This error is about the type of data.


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 6:19 pm
by Bad Addy

They are all different, as I have shown above. Which do you want a screenshot of ? Data_type is json, as is content_type. Each are different though!


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 6:36 pm
by Bad Addy

If you know what the issue is based on the error, can you show me how and what I need to do, so I can retrieve a record based on the devices _id


Is there any way to grab Device information from it's _id ?

Posted: Thu Feb 27, 2014 6:59 pm
by Illya Stepanov

Sorry for misunderstanding -- I'm not sure you can do it this way, you should use 'filter' parameter: http://docs.appery.io/documentation/b...