wechat/open
open module provides open API bindings details in wechat document
Values
pub fn add_phone_calendar(
options o: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.addPhoneCalendar
Add calendar event
pub fn add_phone_contact(
options o: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.addPhoneContact
Add contact to address book
pub fn add_phone_repeat_calendar(
options o: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
Calendar & Contact
wx.addPhoneRepeatCalendar
Add repeat calendar event
pub fn authorize(
scope s: String,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.authorize
Authorize
pub fn choose_address(
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.chooseAddress
Choose address
pub fn choose_contact(
options o: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.chooseContact
Choose contact from address book
pub fn exit_mini_program(
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.exitMiniProgram
Exit mini program
pub fn get_user_info(
with_credentials wc: Bool,
lang l: String,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.getUserInfo
Get user info
pub fn get_user_profile(
desc d: String,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.getUserProfile
Get user profile
pub fn make_phone_call(
phone_number pn: String,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.makePhoneCall
Make phone call
pub fn navigate_back_mini_program(
extra_data ed: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.navigateBackMiniProgram
Navigate back mini program
pub fn navigate_to_mini_program(
app_id a: String,
path p: String,
extra_data ed: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.navigateToMiniProgram
Navigate to mini program
pub fn open_setting(
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.openSetting
Open setting
pub fn request_subscribe_message(
tmpl_ids t: List(#(String, String)),
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.requestSubscribeMessage
Request subscribe message
pub fn send_sms(
options o: object.JsObject,
complete cb: fn() -> Nil,
) -> promise.Promise(Result(object.JsObject, object.WechatError))
wx.sendSms
Send SMS