Create Widget
create_widgetMakes a widget. A social widget: a layout and the user's accounts from list_accounts (the first account gives the widget its service and header; the others add their posts), or one of the user's hashtag campaigns. A review widget: kind "review", a name, a layout and review sources; it shows only the reviews that are not hidden or pending (the "shown" count in list_review_sources), and the answer's reviews_shown says how many it shows. The answer is the widget as get_widget gives it; change its settings with update_widget, then use get_embed_code to put it on a site. A new pro widget counts for the plan's widget limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | "social" (posts of accounts or a campaign) or "review" (reviews). Not sent: social. | |
| name | No | The widget's name in the Widgets list (a review widget needs it). | |
| layout | Yes | The layout: a social one from list_widget_types (for example grid, slideshow, board, feed, scrolling, popup), or a review one (wall, carousel, marquee, list, badge, avatars). | |
| accounts | No | Social widget: the account ids from list_accounts, in order. The first gives the widget its service; at most the plan's accounts per widget (get_account). | |
| source_ids | No | Review widget: the review source ids from list_review_sources. Not sent: all the user's sources. | |
| campaign_id | No | Social widget: one of the user's campaigns (list_campaigns) in place of accounts. Instagram, Pro plans. |