Unsubscribing a user from all emails via an API call?

Note that the method of passing api_key and api_username via query parameters is now deprecated, you should use Api-Key and Api-Username headers nowadays.