/addWidget
The following methods are supported on this resource:
Mount Points
The following URLs are examples of where this resource is mounted :
| XML: | http://api.hi5.com |
| *JSON: | http://api.hi5.com |
| *JSON endpoints are mounted read-only. | |
update
Note: This functionality pre-dates OpenSocial. It should only be used by existing Widget Providers. Add or update a widget defined by code to the profile of the user defined by authToken. If a widgetId is specified than the widget is updated, otherwise it is just added.
Possible HTTP Parameters
| name | description |
|---|---|
| code | the code for the actual widget |
| editUrl | the url to goto to edit this Widget. This is optional. |
| widgetId | the id of the Widget that is to be updated. If this is specified, the Widget be updated, otherwise the Widget will be added. This is optional. |
Output Payload
<pass/> if the widget is successfully embedded
Errors
| code | description |
|---|---|
| 503 | Thrown when an attempt is made to do something that violates internal API constraints. |
| 403 | Thrown when an attempt is made to do something without the correct permissions. |