앱 추천
앱 추천
1. setAppInviteOneLinkID(oneLinkID, callback)
setAppInviteOneLinkID(oneLinkID, callback)
Set the OneLink ID that should be used for User-Invite-API.
The link that is generated for the user invite will use this OneLink ID as the base link ID.
parameter | type | description |
---|---|---|
OneLink ID: | string | OneLink ID: |
callback | 함수 | 성공 콜백 |
참고
- 호출하십시오
setAppInviteOneLinkID()
호출 전에start
.- The OneLink template must be assigned to the app.
2. generateInviteLink(parameters, success, error)
generateInviteLink(parameters, success, error)
A complete list of supported parameters is available here. Custom parameters can be passed using a userParams{} nested object, as in the example above.
parameter | type | description |
---|---|---|
파라미터 | JSON | 초대 링크의 파라미터 |
성공 | 함수 | 성공 콜백(링크 생성) |
에러 | 함수 | 오류 콜백 |
예:
// set the template ID before you generate a link. Without it UserInvite won't work.
appsFlyer.setAppInviteOneLinkID('scVs', null);
// set the user invite params
appsFlyer.generateInviteLink(
{
channel: 'gmail',
campaign: 'myCampaign',
customerID: '1234',
userParams: {
deep_link_value : 'value', // deep link param
deep_link_sub1 : 'sub1', // deep link param
custom_param : 'custom',
brandDomain:'myexample.com'
},
},
(link) => {
console.log(link);
},
(err) => {
console.log(err);
}
);
최신 데이터 3개월 전