WeChat.MiniProgram.Search (wechat v0.6.0)
小程序 - 搜索接口
Link to this section Summary
Link to this section Types
Link to this type
page()
Specs
小程序页面信息
Link to this type
pages()
Specs
pages() :: [page()]
小程序页面信息列表
Link to this type
path()
Specs
path() :: String.t()
页面路径
Link to this type
query()
Specs
query() :: String.t()
页面参数
Link to this section Functions
Link to this function
image_search(client, file_path)
Specs
image_search(WeChat.client(), file_path()) :: WeChat.response()
图片搜索
本接口提供基于小程序的站内搜商品图片搜索能力
Link to this function
image_search(client, filename, file_data)
Specs
image_search(WeChat.client(), filename(), file_data()) :: WeChat.response()
图片搜索(binary)
本接口提供基于小程序的站内搜商品图片搜索能力
Link to this function
site_search(client, keyword, next_page_info \\ "")
Specs
site_search( WeChat.client(), keyword :: String.t(), next_page_info :: String.t() ) :: WeChat.response()
页面搜索(binary)
小程序内部搜索API提供针对页面的查询能力,小程序开发者输入搜索词后,将返回自身小程序和搜索词相关的页面。 因此,利用该接口,开发者可以查看指定内容的页面被微信平台的收录情况;同时,该接口也可供开发者在小程序内应用,给小程序用户提供搜索能力。
Link to this function
submit_pages(client, pages)
Specs
submit_pages(WeChat.client(), pages()) :: WeChat.response()
提交页面(binary)
小程序开发者可以通过本接口提交小程序页面url及参数信息(不要推送webview页面), 让微信可以更及时的收录到小程序的页面信息,开发者提交的页面信息将可能被用于小程序搜索结果展示。