Info |
---|
API Documentation |
...
Info |
---|
Login |
Introduction
For integration purposes there are some APIs that are useful to import data into Plan & Go and also to be able to export.
...
Code Block |
---|
# Example 1) Posting JSON (when logged in, we send the token in the header) curl https://api.planandgo.di.no/external/plan/v-1/create \ -H "Content-Type:application/json" \ -H "X-Auth-Token:olof:5f9a3609a5a295eff861d930a0c75bbee7991842" \ -d "{ \ \"companyId\": 1, \ \"distrDate\": \"2015-12-04\", \ \"distrNo\": 0, \"name\": \"Utkjoring uke 9\" \ }" # Example 2) posting FILE (when logged in, we send the token in the header) curl https://api.planandgo.di.no/external/plan/v-1/importOrderFile/1234/5678 \ -H "Content-Type: multipart/form-data" \ -H "X-Auth-Token: olof:5f9a3609a5a295eff861d930a0c75bbee7991842" \ -F file=@my_import_file_in_this_dir.csv |
Environments
...
DEV:Â https://dev-planandgo.aws.di.no
...
Environment
PROD:
https://api.planandgo.di.no
...