1

我正在尝试 使用 ADALiOS 库( https://github.com/AzureADSamples ) 从 iOS访问我的租户的 Office365(SharePoint)搜索服务,例如: https ://myTenant.sharepoint.com/_vti_bin/search.asmx /NativeClient-iOS )。

这些示例看起来都很复杂,设置另一个应用程序、集成 Web API 等。

最后,我想我只需要验证一次,获取令牌并将每个请求发送给它。

是否有任何可用示例显示如何执行此(看似)简单的任务?或者以前有没有人这样做过,甚至可能没有 ADALiOS?

任何提示表示赞赏!

淡香水

4

1 回答 1

0

I use REST web service for the purpose.

The official guide is too obscure. Below you can find samples that cover simple and advanced queries. They will make things clear:

  1. full-text and property "title"

    _https://MYTENANT.sharepoint.com/_api/search/query?QueryText='part title:document'&selectproperties='Title,Author,Size,Path,Description,Write,LastModifiedTime,HitHighlightedSummary,ServerRedirectedPreviewURL,FileExtension,UniqueId,DisplayAuthor,UrlZone,Culture'&rowlimit=20&rowsperpage=20

  2. full-text and property "author" and "title"

    _https://MYTENANT.sharepoint.com/_api/search/query?QueryText='part title:document author:kapil'&selectproperties='Title,Author,Size,Path,Description,Write,LastModifiedTime,HitHighlightedSummary,ServerRedirectedPreviewURL,FileExtension,UniqueId,DisplayAuthor,UrlZone,Culture'&rowlimit=20&rowsperpage=20

  3. full-text and size limitation

    _https://MYTENANT.sharepoint.com/_api/search/query?QueryText='part title:document size>60000'&selectproperties='Title,Author,Size,Path,Description,Write,LastModifiedTime,HitHighlightedSummary,ServerRedirectedPreviewURL,FileExtension,UniqueId,DisplayAuthor,UrlZone,Culture'&rowlimit=20&rowsperpage=20

  4. full-text and last modified time

    _https://MYTENANT.sharepoint.com/_api/search/query?QueryText='part title:document LastModifiedTime>2014-08-04T04:09:00.0000000Z'&selectproperties='Title,Author,Size,Path,Description,Write,LastModifiedTime,HitHighlightedSummary,ServerRedirectedPreviewURL,FileExtension,UniqueId,DisplayAuthor,UrlZone,Culture'&rowlimit=20&rowsperpage=20

  5. full-text and last modified date

    _https://MYTENANT.sharepoint.com/_api/search/query?QueryText='part title:document LastModifiedTime>2014-08-04'&selectproperties='Title,Author,Size,Path,Description,Write,LastModifiedTime,HitHighlightedSummary,ServerRedirectedPreviewURL,FileExtension,UniqueId,DisplayAuthor,UrlZone,Culture'&rowlimit=20&rowsperpage=20

于 2017-07-26T02:31:39.943 回答