curl is a great way to explore using the API. The following is an example using curl:
curl -H 'Content-Type: application/xml' \
-u admin:password -d ' \
<user> \
<login>new_user</login> \
<password>somepassword</password> \
<email>new_user@yahoo.com</email> \
</user> ' \
http://subdomain.example.com/memberships.xml -v
> POST /memberships.xml HTTP/1.1
> Authorization: Basic
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host: subdmain.example.com:80
> Accept: */*
> Content-Type: application/xml
> Content-Length: 134
>
< HTTP/1.1 422
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Login has already been taken</error>
<error>Email has already been registered</error>
</errors>
curl -u username:password http://subdomain.example.com/markets.xml?page=2
We would love to hear from you. Contact us with questions or comments.