How to signup a new user
The easy steps to get the needed data to create a new StreetLib user
To create a new user you will need some information you have to get from your user.
The email
param will be used as username
too, you can't pass a custom username, the email
will be the username.
There are some params you have to give us as we need:
countryId
timezone
You can get the corresponding data calling respectively the two endpoints:
/countries
/timezones
These will give you the full list of supported countries and timezones from StreetLib, we suggest to use these lists to populate the frontend selects to let choose your users their correct data.
For the countryId
use the relative endpoint id
key.
For the timezone
use the relative endpoint tz
key.
Furthermore we need some other parametric params:
language
should be onlyit | en
we don't accept any other language which will eventually fallback to English onecustomerType
should be onlyauthor | publisher
the endpoint will fail with error if you try to send any other stringpenName
andcompanyName
are conditionally exclusive based oncustomerType
(if it isauthor
thenpenName
is required, if it'spublisher
thencompanyName
is required)
The remaining payload params are simple strings up to your user (email
, firstname
, lastname
)
Last updated
Was this helpful?