Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

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

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.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

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

"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 ?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

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

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Can you show how you are making the request?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

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

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!

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

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

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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

Return to “Issues”