View Source WeChat.Component (elixir_wechat v0.4.6)

Use for WeChat official accounts third-party platform applications, WeChat module is usually used for WeChat's functional APIs invoke directly, WeChat.Component is used to call to refetch/refresh authorizer's access token internally.

Link to this section Summary

Functions

A function helper to fetch authorizer application's access token from component application.

A function helper to fetch component application's access token.

Link to this section Functions

Link to this function

fetch_access_token(appid, authorizer_appid, adapter_storage)

View Source

A function helper to fetch authorizer application's access token from component application.

When apply it to hub, if no available access token from hub's storage, there will use refresh_token to refetch a new one, this function can be used for refresh function.

Link to this function

fetch_component_access_token(appid, adapter_storage)

View Source

A function helper to fetch component application's access token.

When apply it to hub, if no available component access token from hub's storage, there will use verify_ticket to refetch a new one, this function can be used for refresh function.