How can I add a PublisherId to a GetBlob call to the Office365 Rest API to avoid throttling?

后端 未结 2 354
情话喂你
情话喂你 2021-01-24 06:46

I\'m attempting to iteratively retrieve the content from the O365 management API (found here). When I get to the \'Retrieving Content\' section, I am making a get request using

相关标签:
2条回答
  • 2021-01-24 07:12

    I had the same issue and then added the "?PublisherIdentifier={id}" uri parameter like Julian mentioned. That fixed the issue for me.

    You can see the setup that I've been using at the below link (Python). It uses asyncio/aiohttp to speed up the log gathering and also performs the pagination in case you have a 'NextPageUri' header in the response.

    https://github.com/IntegralDefense/o365_log_fetch

    Documentation isn't up to speed yet, but hopefully that will change soon.

    0 讨论(0)
  • 2021-01-24 07:36

    I had the same issue and added "?PublisherIdentifier={id}" to the url and it seems to be working now.

    On another topic, be aware that if you use the list available content method the pagination header is 'NextPageUri' and not 'NextPageUrl' like the documentation says.

    0 讨论(0)
提交回复
热议问题