API _ Needed data list

Connecting with API – “current_observation”   “temp_c”.

I figured out i need five different data from API – city, country, temperature number, temperature string, icon_url

1.temp_c /  object.get(“current_observation”). get(“temp_c”).floatValue());
2.city / object.get(“location”).get(“city”).stringValue());
3.country_name / .get(“location”). get(“country_name”).stringValue();
4.temperature_string /object.get(“current_observation”).get(“temperature_string”).stringValue());
5.icon_url /object.get(“current_observation”).get(“icon_url”).stringValue());

* bellow is example of data format how they response to my httpRequest. The  bellow edited part I need.



Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s