Branch Metrics Web SDK Example
User Agent
WebKit
API Requests
Session Info
Reading session from .init()...
Request
Click a button!
Response
Click a button!
Methods
Session and Identity
.init()
.data()
.setIdentity()
.logout()
Sharing and Tracking
.track()
.link()
.banner()
SMS
.sendSMS(#, linkData, {})
.sendSMS(#, linkData, {make_new_link: true})
Referral
.credits()
.creditHistory()
.redeem()
Codes
How many times can this code be used?
Unlimted (1)
One Time Use (0)
Who Gets the Points?
Referree (0)
Referrer (2)
Both (3)
.getCode()
.validateCode()
.applyCode()