【问题标题】:Get Podio app_id in Get View API using PHP Library使用 PHP 库在 Get View API 中获取 Podio app_id
【发布时间】:2016-10-11 14:36:24
【问题描述】:

我正在使用 Podio API 通过 Podio PHP 库获取视图:

PodioView::get( $view_id );

示例响应是:

{
  "sort_by": How the results should be sorted, see the area for details.
  "sort_desc": True if the result should sorted descending, false otherwise,
  "filters": The filters on this view
  [
    {
      "key": The key of the filter (see the area for details),
      "values": The value(s) to be used for filtering, depends on the type of field. See the area for details.
      "humanized_values": A human-friendly text representation of values,
    }
  ],
  "fields": Any specific settings for fields 
  {
    "{field_id}": The setting for the given field
    {
      "delta_offset": The offset from the fields normal delta,
      "width": Any specific width the field is rendered as,
      "hidden": True if the field is hidden, False otherwise,
      "use": The use of the column either "x_axis" or "y_axis", if any
    }
},
  "groupings": individual groups data, if grouping is present, otherwise {}
  {
    "total": total count of items in all groups,
    "groups": [{
      "count": items count of the single group,
      "avatar": url of users avatar when grouping by contact or created_by, otherwise null
      "color": color of a category option when grouping by category field, otherwise null,
      "value": a unique value for each group,
      "label": a text label for each group
    }
    ]
  },
  "grouping": grouping configuration, if grouping is present, otherwise {}
  {
    "type": "field" or "revision" (grouping by an app field or by created_by | created_on | tags),
    "value": field_id in case of "field" type, "created_by", "created_on" or "tags" in case of "revision",
    "sub_value": interval granularity for date related groupings (date or calculation fields or created_on). "date", "weekday", "week", "month" or "year"
   }
}

没有引用此视图的app_id 的字段。有没有办法获取这个视图的app_id?

【问题讨论】:

    标签: php podio


    【解决方案1】:

    app_id 目前未在 json 响应中返回。我已在我们的开发积压工作中添加了一项以添加此功能。

    【讨论】:

    • app_id 现在在视图 API 中可用吗? :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多