WeChat.Component (elixir_wechat_fork v0.5.2)

Copy Markdown View Source

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.

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.

Functions

fetch_access_token(appid, authorizer_appid, adapter_storage)

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.

fetch_component_access_token(appid, adapter_storage)

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.