Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Identifying Operating System with Data Insertion API

steveh8061046
Level 1
Level 1

I'm currently using the Data Insertion API but the Operating System report is showing my OS as "Unknown". How do I identify the request as from Android? The JAR is using JAVA in the URL, but that's not in the doc

1 Accepted Solution
btripple
Correct answer by
Level 2
Level 2
5 Replies
btripple
Level 2
Level 2

I believe you would pass this via the "userAgent" field or via the HTTP headers if you are sending a POST request.  Using the Android SDK instead might be a better alternative as it takes care of it for you.

steveh8061046
Level 1
Level 1

Thanks for the reply. I am using GET and not POST. Should I still use the "userAgent" field?

btripple
Level 2
Level 2

If you are using GET then you would likely need to make sure you are sending the user-agent http header

The "userAgent" field can be used if you using POST / xml.  I believe this is noted in the documentation.

steveh8061046
Level 1
Level 1

Thanks, btripple. Could you give me an example or point me to the docs where this is noted? I'm not able to find this.

btripple
Correct answer by
Level 2
Level 2