Registration & Resubscribe - Glitch

First Registration:

Once user subscribes you need to call the Access Code API and send us code.

After API call you send sms to user with link.

e.g. yoursite.com/register?a=[msisdn]

User arrives to registration page with MSISDN pre-populated and they set their password.


Resubscribe:

POST access-log/ 

Parameters:

Input
Type
Description
access_code
string
Unencrypted Access Code
generation_client
string
Name of the organisation that created the access code (e.g. clipfeed)
generation_date
unix
Date that the access code was created on
Response:
Output
Type
Description
success
true
The response of this API will be 'success' = 'true'

API Key

tKOrdhPeo92Rqpgf91lUxoNpCNQpAB-5


Headers:

XF-API-KEY: {APIKey} 

XF-API-USER: 1


Real CURL post example:

curl -X POST -k https://yoursite/api/acess-log -H 'XF-API-KEY:

tKOrdhPeo92Rqpgf91lUxoNpCNQpAB-5' -d 

'access_code=123&generation_client=clipfeed&generation_date=1607424491'