Module: WxExt::Api::Semantic

Extended by:
Semantic
Included in:
Semantic
Defined in:
lib/wx_ext/api/semantic.rb

Overview

User api of weixin.

Author:

  • FuShengYang

Instance Method Summary collapse

Instance Method Details

#semantic_search(access_token, semantic_hash) ⇒ Hash

Create semantic search via post.

Parameters:

  • access_token (Enumerable<String>)
  • semantic_hash (Hash)

Returns:

  • (Hash)

    Json based hash.



19
20
21
22
23
# File 'lib/wx_ext/api/semantic.rb', line 19

def semantic_search(access_token, semantic_hash)
  url = 'https://api.weixin.qq.com/semantic/semproxy/search'\
        "?access_token=#{access_token}"
  Helper.http_post(url, semantic_hash.to_json)
end