On this page, you will find basic information on how to integrate InTarget.
Preferred format is CSV (for large datasets), but JSON is also acceptable.
All timestamps must be in UTC timezone without any exceptions and must be formatted with ISO 8601 standard. https://en.wikipedia.org/wiki/ISO_8601. Example: YYYY-MM-DD HH:MM:SS
Your web server must correctly see the space in the endpoint URL, which can be represented either by + or %20
Most endpoints receive from and to GET parameters and must respond with rows, whose last modify timestamp is within range >= from and < to (half-closed interval)
In each response, each row must contain the last modification timestamp. Timestamps can’t be decreased.
You can use any authorization method (md5 auth, signature, basic, OAuth, login+password). We only need examples or descriptions of how we can authorize.
Example
Here is an example of how InTarget gets users every hour (could be changed) from your product (Let's name it "SpaceVegas"):
At 2020-10-10 08:00:01 InTarget will request the URL: https://space-vegas.com/api/users?from=2020-10-10+07:00:00&to=2020-10-10+08:00:00
SpaceVegas must return all users that registered or changed something within this hour (from 07:00 to 08:00). Example:
InTarget will save these users (insert newly registered and update old ones)
In the next hour, InTarget will go for another batch of users with datetime modification between 2020-10-10 08:00:00 and 2020-10-10 09:00:00 using URL: https://space-vegas.com/api/users?from=2020-10-10+08:00:00&to=2020-10-10+09:00:00
InTarget will make the same requests for transactions, wallets, contacts, and game data from SpaceVegas every hour