.noConflict(): this
.noConflict(): this
Subscribe
object already exists in the global object of the current
page, the Subscribe.js
library will be renamed to PooolSubscribe
and the original
Subscribe
object will be restored..init(appId: String): ElementsFactory
.createAuthElement(name: String, options: Object): Promise<AuthElement>
signin-button
: Displays a signin button that redirects to your Subscribe platformsignin-with-subscribe-button
: Displays the same signin button as signin-button
,
but also adds a Subscribe from X/mo
button that displays any offer price of your choice.signin-with-subscribe-button
element
(will display Subscribe from *price of the selected offer*
).config(optionName: String, optionValue: Any, readOnly?: Boolean): this
.config(options: Object, readOnly?: Boolean): this
.getUser(): Promise<UserModel>
undefined
if no
user is authenticated.UserModel
object, which looks like this:.signout(): Promise<this>
.on(name: String, callback: Function): this
.once(name: String, callback: Function): this
.on()
but the callback will be called only once and removed afterwards..off(name: String, callback: Function): this
.on()
or .once()
..destroy(): Promise<null>