refId。
背景
在创建用户资料时,你会在响应中收到四个字段:refId 与 profileKey。profileKey 用于为特定用户资料发起 API 请求,而 refId 则是 Ayrshare 在 API 调用中引用该用户资料的方式。
获取 RefId 的方法
有两种方法可获取用户资料的refId。
-
使用 Get User Profiles 端点获取与主资料相关联的所有用户资料。遍历返回的每个资料,找到与创建用户资料时提供的 title 对应的
refId。(注意:该端点不会返回每个用户资料的profileKey,因此你无法通过它将refId与已有的profileKey相关联。) -
前往 Ayrshare 仪表盘中的 User Profiles 页面。滚动或搜索相关的用户资料,即可在此查看该用户资料的
refId。

