XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently March 28th, 2024, 3:37 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: API GET
PostPosted: May 21st, 2016, 8:38 am 
Offline

Joined: January 2nd, 2014, 9:43 am
Posts: 5
How to get a response from the API website?


Link : http://api.vkontakte.ru/method/users.ge ... 200,status


Respons json :

{
"response": [{
"uid": UID,
"first_name": "text",
"last_name": "text",
"photo_200": "photo url",
"status": "text"
}]
}


How to make a widget that, when run, and press the button to update the data.
Photos loaded in the image


Attachments:
Снимок.JPG
Снимок.JPG [ 36.63 KiB | Viewed 1840 times ]
Top
 Profile  
 
 Post subject: Re: API GET
PostPosted: May 21st, 2016, 9:23 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
I have a yahoo widget that does a json parse and you can have that code if you want. I was going to do the same in an Xwidget but found that remote file handling is a little primitive in Xwidget. In the end I created a yahoo widget instead.

The attached widget is a yahoo widget and you could try the code in an Xwidget but I doubt it will support it, you can but try.

The widget retrieved json data and parsed it successfully.


Attachments:
panzer WoT winrate gauge.zip [3.29 MiB]
Downloaded 202 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group