BmobConfig class

Properties

apiKey String?
REST API Key,REST API请求中HTTP头部信息必须附带密钥之一
no setter
appId String?
Application ID,SDK初始化必须用到此密钥
no setter
hashCode int
The hash code for this object.
no setterinherited
host String
REST API 地址
no setter
masterKey String?
Master Key,超级权限Key。应用开发或调试的时候可以使用该密钥进行各种权限的操作,此密钥不可泄漏
no setter
printError LogCallback
打印错误请求日志
final
printResponse LogCallback
打印请求正确日志
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeRequest bool
no setter
safeToken String?
no setter
secretKey String?
Secret Key,是SDK安全密钥,不可泄漏,在云函数测试云函数时需要用到
no setter
sessionToken String?
用户登陆的token
getter/setter pair

Methods

getHeaders({String? url}) Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

config BmobConfig
no setter

Static Methods

init(String appId, String apiKey, {String host = "https://api2.bmob.cn", String? masterKey, String? sessionToken, dynamic printError, dynamic printResponse}) → void
组件初始化。 非加密请求
initSafe(String secretKey, String safeToken, {String host = "https://api2.bmob.cn", String? masterKey, String? sessionToken, dynamic printError, dynamic printResponse}) → void
组件初始化。 加密请求