With the Gofilex API, it is possible to add orders to the Gofilex Portal.
These wiki pages describe the methods, publications, and fields to be used.
The Gofilex API has two methods of authentication:
We suggest that you use the Token for authentication if you have many requests. Otherwise, you can use the Basic Authentication for a single request.
Please request a username and password at support@gofilex.nl
An authorization token is required to access the Gofilex API. This will be returned after you log in by making a POST request to
https://genie.portal.gofilex.com/api/user/login with this JSON as the body,
EMEA Portal
https://genie.portal.gofilex.com/api/user/login
APAC Portal
https://genie.portal.apac.gofilex.com/api/user/login
MPS Portal
https://genie.portal.mps.gofilex.com/api/user/login
NORAM Portal
https://genie.gofilex.bydeluxe.gofilex.com/api/user/login
{
"email":"your@email.address",
"password":"******"
}
curl -v POST https://genie.portal.gofilex.com/api/user/login -d @token.json --header "Content-Type: application/json"
token.json
{
"email":"api@gofilex.nl",
"password":"98S4YFToxgcBFc8IooBTeu5hP5Trs6gBxB4m2sfXRJi"
}
This will return a JSON document:
{
"_id": "AYpXoFcg8pQ6rdAum",
"token": "wxdpwrEUHJ69wP7A0Wa-Ltp0QAiCxnLaCc9OpB2362C",
"expiration": "2018-11-14T10:37:17.681Z"
}
We will use the token value to identify and authorize all requests that are made afterward. You have to provide it as the Authorization header in each request, with the value Bearer: *some-token-value*
.
curl -X POST https://genie.portal.gofilex.com/api/publication/v1/asset -d @asset.json --header "Content-Type: application/json" --user "foo@bar.nl:3uunB8DmsVEyv4LY7qRsZ50ouHrlm_HBeiYQGRcrWV1"
asset.json:
{
"assetUuid": "3b562358-e9ab-4f69-acb5-b0df5f2dd555",
"withAvailability": true
}
Please see the articles for in-depth information.