首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Appstore connect profile api不工作

Appstore connect profile api不工作
EN

Stack Overflow用户
提问于 2019-09-08 11:22:05
回答 1查看 346关注 0票数 2

我使用appstore连接API。我使用了create,得到了500个错误(profile)。我检查了所有的字段,它们都是正确的。我也和苹果联系过,但他们没有回来。

请求:帖子:https://api.appstoreconnect.apple.com/v1/profiles

身体数据:

代码语言:javascript
复制
{
    "data": {
        "attributes": {
            "name": "xxx",
            "profileType": "IOS_APP_STORE"
        },
        "relationships": {
            "bundleId": {
                "data": {
                    "id": "xxx",
                    "type": "bundleIds"
                }
            },
            "certificates": {
                "data": {
                    "id": "xxx",
                    "type": "certificates"
                }
            }
        },
        "type": "profiles"
    }
}

响应:

代码语言:javascript
复制
{
  errors: [
    {
      status: '500',
      code: 'UNEXPECTED_ERROR',
      title: 'An unexpected error occurred.',
      detail: 'An unexpected error occurred on the server side. If this issue ' +
        'continues, contact us at https://developer.apple.com/contact/.'
    }
  ]
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-09-08 12:37:07

解决了

证书数据必须是数组。

代码语言:javascript
复制
"certificates": {
      "data": {
            "id": "xxx",
            "type": "certificates"
      }
 }

代码语言:javascript
复制
"certificates": {
      "data": [{
            "id": "xxx",
            "type": "certificates"
      }]
 }
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57841473

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档