在linkedin上发布ugc视频时发生权限错误 [英] permission error while making ugc video post on linkedin

查看:172
本文介绍了在linkedin上发布ugc视频时发生权限错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用新的ugc端点在linkedin上创建视频发布

I am trying to create video post on linkedin with new ugc endpoint

创建此类帖子有两个步骤

there are two steps to create this type of post

1).将视频资产上传到linkedin服务器上(完成)
2).向带有请求正文的ugc端点发出请求

1). Upload video asset on linkedin server (done)
2). make post request to ugc endpoint with request body

我已经成功上传了视频,但是收到ugc帖子请求的身份验证错误.错误是

I have successfully uploaded the video but getting authentication error for ugc post request. error is

{
    "message": "urn:li:developerApplication:<id1> does not have permission to create ugc posts with author: li:member:<id2>",
    "status": 401
}

我正在按照linkedin API文档中的建议传递请求正文.

I am passing the request body as suggested in the linkedin api docs.

{
  "author": "urn:li:person:<id>",
  "lifecycleState": "PUBLISHED",
  "specificContent": {
    "com.linkedin.ugc.ShareContent": {
      "media": [
        {
          "title": {
            "attributes": [],
            "text": "Sample Video Create"
          },
          "description": {
            "attributes": [],
            "text": "Sample Description"
          },
          "media": "urn:li:digitalmediaAsset:<asset_id>",
          "thumbnails": [],
          "status": "READY"
        }
      ],
      "shareCommentary": {
        "attributes": [],
        "text": "Some share text"
      },
      "shareMediaCategory": "VIDEO"
    }
  },
  "visibility": {
    "com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC"
  },
  "targetAudience": {
    "targetedEntities": [
      {
        "locations": [
          "urn:li:country:us"
        ]
      }
    ]
  }
}

请提出如何解决此问题的建议.从错误消息似乎我没有提供某些权限.但是我不确定我在哪里犯错.

Please suggest how I can solve this problem. From error message it seems like I am not providing some permission. But I am not sure where I am making mistake.

推荐答案

这是我从埃文,

创建视频UGC帖子目前是列入白名单的功能.当前,正在将新的视频应用列入白名单.

Creating video UGC posts is currently a whitelisted feature. There is currently hold on whitelisting new apps for video.

您可以继续创建不是视频的UGC帖子.

You may continue to create UGC posts that are not video though.

我将暂缓此操作,直到获得有关何时可以再次将应用列入白名单的更多信息为止.

I'll put this on hold until I have more information on when we can whitelist apps again.

最好, 亚历克斯"

这篇关于在linkedin上发布ugc视频时发生权限错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆