10. Web Component
Get a one-time url to render the FriendlyScore WebComponent
Changed onpost/public/v3/component_auth/init
Request
- Base URLhttps://api.friendlyscore.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Request body
Example request
{
"ip": "1.2.3.4",
"user_agent": "Mozilla/5.0 (X11; Linux AMD64; rv:70.0.0) Gecko/20100101 Firefox/70.0.0",
"user_reference": "my-user-1234",
"origin": "https://example.com"
}Response
Returns ComponentInitResponse with one time url
Example response
{
"url": "https://component.friendlyscore.com/render/token=123456789",
"created_at": 1541014557,
"expires_in": 1800
}Changes
- info
endpoint added
- info