Note that there are some explanatory texts on larger screens.

plurals
  1. POUrban Airship. Get Android APIDs using /api/apids/ method
    primarykey
    data
    text
    <p>I have been trying to use the server side api provided by Urban Airship to integrate with my Android app. I am trying to get all the APIDs registered in Urban Airship server from my Android app. I am getting a Null value always although I have registered 3 devices(emulator registration) and I can view them in <a href="https://go.urbanairship.com/api/apids/" rel="nofollow">https://go.urbanairship.com/api/apids/</a> after logging in using my app key and secret as username and password respectively.</p> <p>Urban Airship has provided methods(jave code) to use the server side REST api exposed. Developers have to write their own method for functionalities that are not provided by Urban Airship. there was no method for getting APIDs , hence I wrote this method in line with the other methods. </p> <pre><code> public DeviceTokensResponse getApids() throws URISyntaxException { return get(DeviceTokensResponse.class, "/api/apids/"); } </code></pre> <p>I used the same server side api to successfully fetch the iPhone device tokens stored in the Urban Airship server using the api /api/device_tokens/ . FInd below the code for fetching iPhone device tokens. This is giving the expected results.</p> <pre><code> public DeviceTokensResponse getDeviceTokens() throws URISyntaxException { return get(DeviceTokensResponse.class, "/api/device_tokens/"); } </code></pre> <p>I'm sorry for asking a question about a specific product like Urban Airship. I have seen the founders of Urban Airship active in this forum, hence I did not hesitate to post this question. Kindly help me with this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload