Skip to content
Branch: master
Find file History
Latest commit aace4e2 Sep 4, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
API Auth E1.jpg Add files via upload Mar 14, 2018
API Auth E2.jpg Add files via upload Mar 14, 2018
API Auth E3a.jpg
API Auth E3b.jpg Add files via upload Mar 14, 2018
README.md Update README.md Sep 4, 2018

README.md

Login API Best Practice & Use Cases

Example 1:

First time login, saving token in your cache and immediately calling an Optimove API from the cached token


Example 2:

First time login, saving token in your cache and immediately calling an Optimove API from the cached token, then there is an idle for 20m or more which means you will need to re-login again (login + save to cache), followed by calling additional Optimove APIs.


Example 3a:

First time login, saving token in your cache and immediately calling an Optimove API from the cached token, following by calling the login API before the token has been expired. You will get an error (#429) of too many request. Please do not call the login API unless the token has expired. Please note: only 1 call per sec is allowed, otherwise #429 error will be sent.


Example 3b:

First time login, saving token in your cache and immediately calling an Optimove API from the cached token, then there is an idle for 20m or more and you try to call another Optimove APIA. You will get an error (#403) of that the token was expired. It means you will have to re-login again (login + save to cache), followed by calling additional Optimove APIs.

You can’t perform that action at this time.