elixir_wechat v0.1.2 GlobalComponentAppIdHubClient
NOTICE: THIS MODULE IS ONLY FOR DOCUMENT.
Initialize a WeChat Component client with component_appid
globally.
This suite is used for construct a Client to invoke WeChat APIs via elixir_wechat
library, this usecase is usual for the Server(:hub
scenario) side.
defmodule WeChat.MyComponentApp do
use WeChat.Component,
appid: "MY_COMPONENT_APPID"
scenario: :hub,
adapter_storage: MockHub.Adapter.Component
end
MockHub.Adapter.Component
is ONLY a sample module implemented WeChat.Adapter.Storage.ComponentHub
.
Options:
:appid
- the appid of WeChat 3rd-party platform application.:scenario
- the scenario of initialized client, options::hub
or:client
, set as:hub
option means it is self-manange access token in the hub, we need to do it when using this library in the Server side, set as:client
option means this library sends refresh request to the hub to fetch valid access token of authorizer, using:client
by default.:adapter_storage
- the implements for some items persistence, e.g.access_token
,secret_key
,component_access_token
and etc, when set scenario as:hub
, this field option is required, please implement required functions followWeChat.Adapter.Storage.ComponentHub
.
Link to this section Summary
Functions
Perform CARD API(s)
Perform CARD API(s)
Perform CARD API(s)
Perform CARD_CODE API(s)
Perform CARD_CODE API(s)
Perform CARD_CODE API(s)
Perform CARD_USER API(s)
Perform CARD_USER API(s)
Perform CARD_USER API(s)
Perform COMPONENT API(s)
Perform COMPONENT API(s)
Perform DATACUBE API(s)
Perform DATACUBE API(s)
Perform DATACUBE API(s)
Perform MATERIAL API(s)
Perform MATERIAL API(s)
Perform MATERIAL API(s)
Perform MEDIA API(s)
Perform MEDIA API(s)
Perform MEDIA API(s)
Perform MENU API(s)
Perform MENU API(s)
Perform MENU API(s)
Perform MESSAGE_CUSTOM API(s)
Perform MESSAGE_CUSTOM API(s)
Perform MESSAGE_CUSTOM API(s)
Perform MESSAGE_TEMPLATE API(s)
Perform MESSAGE_TEMPLATE API(s)
Perform MESSAGE_TEMPLATE API(s)
Perform POI API(s)
Perform POI API(s)
Perform POI API(s)
Perform QRCODE API(s)
Perform QRCODE API(s)
Perform QRCODE API(s)
Refresh authorizer access_token in :hub
scenario
Refresh component access_token in :hub
scenario
Perform SHORTURL API(s)
Perform SHORTURL API(s)
Perform SHOWQRCODE API(s)
Perform SHOWQRCODE API(s)
Perform SHOWQRCODE API(s)
Perform TAGS API(s)
Perform TAGS API(s)
Perform TAGS API(s)
Perform TEMPLATE API(s)
Perform TEMPLATE API(s)
Perform TEMPLATE API(s)
Perform USER API(s)
Perform USER API(s)
Perform USER API(s)
Link to this section Functions
card(http_verb, authorizer_appid)
Perform CARD API(s)
card(:get, authorizer_appid)
card(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/card
.
card(http_verb, authorizer_appid, parameters)
Perform CARD API(s)
card(:get, authorizer_appid, uri_supplement)
card(:get, authorizer_appid, query)
card(:post, authorizer_appid, uri_supplement)
card(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/card
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/card/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
card(:http_verb, authorizer_appid, :"${uri_supplement}")
card(http_verb, authorizer_appid, uri_supplement, parameters)
Perform CARD API(s)
card(:get, authorizer_appid, uri_supplement, query)
card(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/card
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/card/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
card(:http_verb, authorizer_appid, :"${uri_supplement}", query)
card(:http_verb, authorizer_appid, :"${uri_supplement}", data)
card_code(http_verb, authorizer_appid)
Perform CARD_CODE API(s)
card_code(:get, authorizer_appid)
card_code(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/card/code
.
card_code(http_verb, authorizer_appid, parameters)
Perform CARD_CODE API(s)
card_code(:get, authorizer_appid, uri_supplement)
card_code(:get, authorizer_appid, query)
card_code(:post, authorizer_appid, uri_supplement)
card_code(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/card/code
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/card/code/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
card_code(:http_verb, authorizer_appid, :"${uri_supplement}")
card_code(http_verb, authorizer_appid, uri_supplement, parameters)
Perform CARD_CODE API(s)
card_code(:get, authorizer_appid, uri_supplement, query)
card_code(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/card/code
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/card/code/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
card_code(:http_verb, authorizer_appid, :"${uri_supplement}", query)
card_code(:http_verb, authorizer_appid, :"${uri_supplement}", data)
card_user(http_verb, authorizer_appid)
Perform CARD_USER API(s)
card_user(:get, authorizer_appid)
card_user(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/card/user
.
card_user(http_verb, authorizer_appid, parameters)
Perform CARD_USER API(s)
card_user(:get, authorizer_appid, uri_supplement)
card_user(:get, authorizer_appid, query)
card_user(:post, authorizer_appid, uri_supplement)
card_user(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/card/user
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/card/user/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
card_user(:http_verb, authorizer_appid, :"${uri_supplement}")
card_user(http_verb, authorizer_appid, uri_supplement, parameters)
Perform CARD_USER API(s)
card_user(:get, authorizer_appid, uri_supplement, query)
card_user(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/card/user
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/card/user/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
card_user(:http_verb, authorizer_appid, :"${uri_supplement}", query)
card_user(:http_verb, authorizer_appid, :"${uri_supplement}", data)
component(http_verb, parameters)
Perform COMPONENT API(s)
component(:post, uri_supplement)
component(:post, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/component
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/component/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
component(:http_verb, :"${uri_supplement}")
component(http_verb, uri_supplement, parameters)
Perform COMPONENT API(s)
component(:post, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/component
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/component/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
component(:http_verb, :"${uri_supplement}", query)
component(:http_verb, :"${uri_supplement}", data)
datacube(http_verb, authorizer_appid)
Perform DATACUBE API(s)
datacube(:get, authorizer_appid)
datacube(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/datacube
.
datacube(http_verb, authorizer_appid, parameters)
Perform DATACUBE API(s)
datacube(:get, authorizer_appid, uri_supplement)
datacube(:get, authorizer_appid, query)
datacube(:post, authorizer_appid, uri_supplement)
datacube(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/datacube
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/datacube/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
datacube(:http_verb, authorizer_appid, :"${uri_supplement}")
datacube(http_verb, authorizer_appid, uri_supplement, parameters)
Perform DATACUBE API(s)
datacube(:get, authorizer_appid, uri_supplement, query)
datacube(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/datacube
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/datacube/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
datacube(:http_verb, authorizer_appid, :"${uri_supplement}", query)
datacube(:http_verb, authorizer_appid, :"${uri_supplement}", data)
get_access_token(authorizer_appid)
get_component_access_token()
get_verify_ticket()
material(http_verb, authorizer_appid)
Perform MATERIAL API(s)
material(:get, authorizer_appid)
material(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/material
.
material(http_verb, authorizer_appid, parameters)
Perform MATERIAL API(s)
material(:get, authorizer_appid, uri_supplement)
material(:get, authorizer_appid, query)
material(:post, authorizer_appid, uri_supplement)
material(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/material
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/material/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
material(:http_verb, authorizer_appid, :"${uri_supplement}")
material(http_verb, authorizer_appid, uri_supplement, parameters)
Perform MATERIAL API(s)
material(:get, authorizer_appid, uri_supplement, query)
material(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/material
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/material/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
material(:http_verb, authorizer_appid, :"${uri_supplement}", query)
material(:http_verb, authorizer_appid, :"${uri_supplement}", data)
media(http_verb, authorizer_appid)
Perform MEDIA API(s)
media(:get, authorizer_appid)
media(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/media
.
media(http_verb, authorizer_appid, parameters)
Perform MEDIA API(s)
media(:get, authorizer_appid, uri_supplement)
media(:get, authorizer_appid, query)
media(:post, authorizer_appid, uri_supplement)
media(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/media
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/media/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
media(:http_verb, authorizer_appid, :"${uri_supplement}")
media(http_verb, authorizer_appid, uri_supplement, parameters)
Perform MEDIA API(s)
media(:get, authorizer_appid, uri_supplement, query)
media(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/media
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/media/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
media(:http_verb, authorizer_appid, :"${uri_supplement}", query)
media(:http_verb, authorizer_appid, :"${uri_supplement}", data)
message_custom(http_verb, authorizer_appid)
Perform MESSAGE_CUSTOM API(s)
message_custom(:get, authorizer_appid)
message_custom(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/message/custom
.
message_custom(http_verb, authorizer_appid, parameters)
Perform MESSAGE_CUSTOM API(s)
message_custom(:get, authorizer_appid, uri_supplement)
message_custom(:get, authorizer_appid, query)
message_custom(:post, authorizer_appid, uri_supplement)
message_custom(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/message/custom
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/message/custom/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
message_custom(:http_verb, authorizer_appid, :"${uri_supplement}")
message_custom(http_verb, authorizer_appid, uri_supplement, parameters)
Perform MESSAGE_CUSTOM API(s)
message_custom(:get, authorizer_appid, uri_supplement, query)
message_custom(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/message/custom
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/message/custom/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
message_custom(:http_verb, authorizer_appid, :"${uri_supplement}", query)
message_custom(:http_verb, authorizer_appid, :"${uri_supplement}", data)
message_template(http_verb, authorizer_appid)
Perform MESSAGE_TEMPLATE API(s)
message_template(:get, authorizer_appid)
message_template(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/message/template
.
message_template(http_verb, authorizer_appid, parameters)
Perform MESSAGE_TEMPLATE API(s)
message_template(:get, authorizer_appid, uri_supplement)
message_template(:get, authorizer_appid, query)
message_template(:post, authorizer_appid, uri_supplement)
message_template(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/message/template
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/message/template/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
message_template(:http_verb, authorizer_appid, :"${uri_supplement}")
message_template(http_verb, authorizer_appid, uri_supplement, parameters)
Perform MESSAGE_TEMPLATE API(s)
message_template(:get, authorizer_appid, uri_supplement, query)
message_template(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/message/template
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/message/template/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
message_template(:http_verb, authorizer_appid, :"${uri_supplement}", query)
message_template(:http_verb, authorizer_appid, :"${uri_supplement}", data)
poi(http_verb, authorizer_appid)
Perform POI API(s)
poi(:get, authorizer_appid)
poi(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/poi
.
poi(http_verb, authorizer_appid, parameters)
Perform POI API(s)
poi(:get, authorizer_appid, uri_supplement)
poi(:get, authorizer_appid, query)
poi(:post, authorizer_appid, uri_supplement)
poi(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/poi
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/poi/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
poi(:http_verb, authorizer_appid, :"${uri_supplement}")
poi(http_verb, authorizer_appid, uri_supplement, parameters)
Perform POI API(s)
poi(:get, authorizer_appid, uri_supplement, query)
poi(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/poi
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/poi/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
poi(:http_verb, authorizer_appid, :"${uri_supplement}", query)
poi(:http_verb, authorizer_appid, :"${uri_supplement}", data)
qrcode(http_verb, authorizer_appid)
Perform QRCODE API(s)
qrcode(:get, authorizer_appid)
qrcode(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/qrcode
.
qrcode(http_verb, authorizer_appid, parameters)
Perform QRCODE API(s)
qrcode(:get, authorizer_appid, uri_supplement)
qrcode(:get, authorizer_appid, query)
qrcode(:post, authorizer_appid, uri_supplement)
qrcode(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/qrcode
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/qrcode/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
qrcode(:http_verb, authorizer_appid, :"${uri_supplement}")
qrcode(http_verb, authorizer_appid, uri_supplement, parameters)
Perform QRCODE API(s)
qrcode(:get, authorizer_appid, uri_supplement, query)
qrcode(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/qrcode
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/qrcode/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
qrcode(:http_verb, authorizer_appid, :"${uri_supplement}", query)
qrcode(:http_verb, authorizer_appid, :"${uri_supplement}", data)
refresh_access_token(authorizer_appid, options)
Refresh authorizer access_token in :hub
scenario.
refresh_access_token(authorizer_appid, [access_token: access_token])
refresh_component_access_token(options)
Refresh component access_token in :hub
scenario.
refresh_component_access_token(authorizer_appid, [component_access_token: component_access_token])
set_access_token(response_body, options)
set_component_access_token(response_body, options)
set_verify_ticket(verify_ticket)
shorturl(http_verb, authorizer_appid, parameters)
Perform SHORTURL API(s)
shorturl(:post, authorizer_appid, uri_supplement)
shorturl(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/shorturl
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/shorturl/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
shorturl(:http_verb, authorizer_appid, :"${uri_supplement}")
shorturl(http_verb, authorizer_appid, uri_supplement, parameters)
Perform SHORTURL API(s)
shorturl(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/shorturl
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/shorturl/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
shorturl(:http_verb, authorizer_appid, :"${uri_supplement}", query)
shorturl(:http_verb, authorizer_appid, :"${uri_supplement}", data)
showqrcode(http_verb, authorizer_appid)
Perform SHOWQRCODE API(s)
showqrcode(:get, authorizer_appid)
Send request to URL https://mp.weixin.qq.com/cgi-bin/showqrcode
.
showqrcode(http_verb, authorizer_appid, parameters)
Perform SHOWQRCODE API(s)
showqrcode(:get, authorizer_appid, uri_supplement)
showqrcode(:get, authorizer_appid, query)
Send request to URL https://mp.weixin.qq.com/cgi-bin/showqrcode
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://mp.weixin.qq.com/cgi-bin/showqrcode/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
showqrcode(:http_verb, authorizer_appid, :"${uri_supplement}")
showqrcode(http_verb, authorizer_appid, uri_supplement, parameters)
Perform SHOWQRCODE API(s)
showqrcode(:get, authorizer_appid, uri_supplement, query)
Send request to URL https://mp.weixin.qq.com/cgi-bin/showqrcode
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://mp.weixin.qq.com/cgi-bin/showqrcode/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
showqrcode(:http_verb, authorizer_appid, :"${uri_supplement}", query)
showqrcode(:http_verb, authorizer_appid, :"${uri_supplement}", data)
tags(http_verb, authorizer_appid)
Perform TAGS API(s)
tags(:get, authorizer_appid)
tags(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/tags
.
tags(http_verb, authorizer_appid, parameters)
Perform TAGS API(s)
tags(:get, authorizer_appid, uri_supplement)
tags(:get, authorizer_appid, query)
tags(:post, authorizer_appid, uri_supplement)
tags(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/tags
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/tags/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
tags(:http_verb, authorizer_appid, :"${uri_supplement}")
tags(http_verb, authorizer_appid, uri_supplement, parameters)
Perform TAGS API(s)
tags(:get, authorizer_appid, uri_supplement, query)
tags(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/tags
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/tags/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
tags(:http_verb, authorizer_appid, :"${uri_supplement}", query)
tags(:http_verb, authorizer_appid, :"${uri_supplement}", data)
template(http_verb, authorizer_appid)
Perform TEMPLATE API(s)
template(:get, authorizer_appid)
template(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/template
.
template(http_verb, authorizer_appid, parameters)
Perform TEMPLATE API(s)
template(:get, authorizer_appid, uri_supplement)
template(:get, authorizer_appid, query)
template(:post, authorizer_appid, uri_supplement)
template(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/template
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/template/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
template(:http_verb, authorizer_appid, :"${uri_supplement}")
template(http_verb, authorizer_appid, uri_supplement, parameters)
Perform TEMPLATE API(s)
template(:get, authorizer_appid, uri_supplement, query)
template(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/template
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/template/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
template(:http_verb, authorizer_appid, :"${uri_supplement}", query)
template(:http_verb, authorizer_appid, :"${uri_supplement}", data)
user(http_verb, authorizer_appid)
Perform USER API(s)
user(:get, authorizer_appid)
user(:post, authorizer_appid)
Send request to URL https://api.weixin.qq.com/cgi-bin/user
.
user(http_verb, authorizer_appid, parameters)
Perform USER API(s)
user(:get, authorizer_appid, uri_supplement)
user(:get, authorizer_appid, query)
user(:post, authorizer_appid, uri_supplement)
user(:post, authorizer_appid, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/user
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/user/${uri_supplement}
, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
user(:http_verb, authorizer_appid, :"${uri_supplement}")
user(http_verb, authorizer_appid, uri_supplement, parameters)
Perform USER API(s)
user(:get, authorizer_appid, uri_supplement, query)
user(:post, authorizer_appid, uri_supplement, data)
Send request to URL https://api.weixin.qq.com/cgi-bin/user
.
Refer WeChat Official Accounts Platform document, if you need to call a service's url is https://api.weixin.qq.com/cgi-bin/user/${uri_supplement}
, and need to post data or append query string, please use uri_supplement
parameter to construct the corresponding service's complete url, for example:
user(:http_verb, authorizer_appid, :"${uri_supplement}", query)
user(:http_verb, authorizer_appid, :"${uri_supplement}", data)