Socialtables API - 创建表格&填充它们

时间:2016-10-18 15:29:28

标签: social-tables

Socialtables API Docs似乎没有表明我是否可以创建表格和&通过API填充它们。是否有可能,并且有人知道任何格式化此类请求的文档吗?

1 个答案:

答案 0 :(得分:1)

绝对 - 可以通过向POST端点发出/4.0/legacyvm3/teams/{team}/events/{event}/elements请求,为现存事件创建表格。请求体应该是一个JSON编码的楼层元素描述符数组,每个描述符的组成应如下所示:

{ "random_id": (a UUID or other unique string), "event_id": (the ID of your event), "space_id": (the ID of your space), "pos_x": (the horizontal position of your table), "pos_y": (the vertical position of your table), "rotation": (the desired rotation of your table), "name": (the name that should correspond to your table, or an empty string), "width": (the width of the table, in inches), "length": (the length of the table, in inches), "radius": (the radius of your table, in inches, if circular), "layout": (specify 'table-rectangle-custom' or 'table-circle-custom' for rectangular or circular tables respectively) }

事件和空间ID可以是从事件的URI中获取,或分别通过事件和空间列表端点获取。有关更多信息,包括创建事件的端点,请参阅https://developer.socialtables.com/api-console的完整端点列表。