Retrieve all gadgets of a hub.
- Added: May 28, 2009
- Paginated
params
- hubid --- A single hubid.
responsefields
This method supports the use of ha_responsefields. Acceptable values are a comma separated list of 0 or more of the following:
- commentscount
- respectscount
- fancylayouttag
- viewscount
- hasrespected
sort
Sorted by age. The most recently created items are returned first.extra
This function may return more information if you supply a valid access token to oauth_token.
For more information on oAuth, see http://www.hyves-developers.nl/documentation/data-api/hyves-api-oauth/.
Note that retrieving something by id always succeeds (as long as the id is valid), even if the visibility settings of the object do not allow viewing it. If some user is not allowed to view something, he/she will not get the id from another call.examples
example 1
urlhttps://data.hyves-api.nl/?hubid=00c84cdcb460087b804059d244cb79df31&ha_method=gadgets.getByHub&ha_resultsperpage=2&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&ha_version=2.0&oauth_signature_method=PLAINTEXT
result- <?xml version="1.0" encoding="UTF-8"?>
- <gadgets_getByHub_result>
- <gadget>
- <gadgetid>008b46add463bbac57e75c30ec4ab1510f</gadgetid>
- <title> hij is vet cool</title>
- <html><img src="http://i251.photobucket.com/albums/gg287/krabbelaars/2ilnaix.gif"></html>
- <specurl/>
- <maycopy>true</maycopy>
- <userid>003a87114c296e034bff388ab8ed42ede1</userid>
- <hubid>00c84cdcb460087b804059d244cb79df31</hubid>
- <url>http://hyves20games.hyves.nl/widget/134443294/hij_is_vet_cool/C6sw/</url>
- <visibility>none</visibility>
- </gadget>
- <info>
- <totalresults>1</totalresults>
- <totalpages>1</totalpages>
- <resultsperpage>2</resultsperpage>
- <currentpage>1</currentpage>
- <secure_connection>true</secure_connection>
- <running_milliseconds>26</running_milliseconds>
- <serverinfo>web1108_stable_93882_HPHP</serverinfo>
- </info>
- </gadgets_getByHub_result>
example 2
urlhttps://data.hyves-api.nl/?hubid=00c84cdcb460087b804059d244cb79df31&ha_method=gadgets.getByHub&ha_resultsperpage=2&ha_responsefields=commentscount%2Crespectscount%2Cfancylayouttag%2Cviewscount%2Chasrespected&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&ha_version=2.0&oauth_signature_method=PLAINTEXT
result- <?xml version="1.0" encoding="UTF-8"?>
- <gadgets_getByHub_result>
- <gadget>
- <gadgetid>008b46add463bbac57e75c30ec4ab1510f</gadgetid>
- <title> hij is vet cool</title>
- <html><img src="http://i251.photobucket.com/albums/gg287/krabbelaars/2ilnaix.gif"></html>
- <specurl/>
- <maycopy>true</maycopy>
- <userid>003a87114c296e034bff388ab8ed42ede1</userid>
- <hubid>00c84cdcb460087b804059d244cb79df31</hubid>
- <url>http://hyves20games.hyves.nl/widget/134443294/hij_is_vet_cool/C6sw/</url>
- <visibility>none</visibility>
- <commentscount>0</commentscount>
- <respectscount>0</respectscount>
- <hasrespected>false</hasrespected>
- <fancylayouttag>[gadget]<img src="http://i251.photobucket.com/albums/gg287/krabbelaars/2ilnaix.gif">[/gadget]</fancylayouttag>
- <viewscount/>
- </gadget>
- <info>
- <totalresults>1</totalresults>
- <totalpages>1</totalpages>
- <resultsperpage>2</resultsperpage>
- <currentpage>1</currentpage>
- <secure_connection>true</secure_connection>
- <running_milliseconds>136</running_milliseconds>
- <serverinfo>web951_stable_93882_HPHP</serverinfo>
- </info>
- </gadgets_getByHub_result>
returnvalues
- commentscount,
- currentpage,
- fancylayouttag,
- gadget,
- gadgetid,
- hasrespected,
- html,
- hubid,
- info,
- maycopy,
- respectscount,
- resultsperpage,
- running_milliseconds,
- secure_connection,
- serverinfo,
- specurl,
- title,
- totalpages,
- totalresults,
- url,
- userid,
- viewscount,
- visibility