Skip to content

Instantly share code, notes, and snippets.

@rdmpage
Created December 10, 2015 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdmpage/9043030c8b5716d54f24 to your computer and use it in GitHub Desktop.
Save rdmpage/9043030c8b5716d54f24 to your computer and use it in GitHub Desktop.
EOL Collections Write API
{"collection":{"name":"Mesoplodon","description":"Mesoplodon species","collection_items":[{"collected_item_type":"TaxonConcept","collected_item_id":328563}]}}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>baseURL</key>
<string>http://eol.org/wapi/collections</string>
<key>bodyString</key>
<string>{"collection":{"name":"Mesoplodon","description":"Mesoplodon species","collection_items":[{"collected_item_type":"TaxonConcept","collected_item_id":328563}]}}</string>
<key>followRedirect</key>
<true/>
<key>handleJSONPCallbacks</key>
<false/>
<key>headers</key>
<array>
<dict>
<key>header</key>
<string>Content-Type</string>
<key>inUse</key>
<true/>
<key>value</key>
<string>application/json</string>
</dict>
<dict>
<key>header</key>
<string>Expect</string>
<key>inUse</key>
<true/>
<key>value</key>
<string>100-continue</string>
</dict>
<dict>
<key>header</key>
<string>Authorization</string>
<key>inUse</key>
<true/>
<key>value</key>
<string>Token token=[token]</string>
</dict>
</array>
<key>httpMethod</key>
<string>POST</string>
<key>jsonpScript</key>
<string></string>
<key>paramBodyUIChoice</key>
<integer>0</integer>
<key>parameters</key>
<array/>
<key>parametersType</key>
<integer>1</integer>
<key>presentBeforeChallenge</key>
<false/>
<key>stringEncoding</key>
<integer>4</integer>
<key>usingHTTPBody</key>
<true/>
</dict>
</plist>
@rdmpage
Copy link
Author

rdmpage commented Dec 10, 2015

Authorization: Token token=
Content-Type: application/json
Expect: 100-continue

Get API token from your profile page in EOL, e.g. http://eol.org/users/50575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment