Push Inbox provides a public API that allows your program to send messages and perform other tasks.
The API provided by Push Inbox is in REST-style (Representational State Transfer). All calls to the API must perform over secured HTTPS connection, all data submitted must be in UTF-8 encoding.
Some API calls may require authentication, your program should use HTTP basic authentication over HTTPS in order to access protected API functions.
In order to send a message to a Push Inbox user, you must provide either the user's PIN, or a valid user key. To send a message, submit a HTTP Post request to this collection URL
https://www.getpushinbox.com/messages
Authentication
Authentication is optional
Parameters
The Post request must provides these 4 parameters
message[from] Sender's email address, or sender's key
message[to] Recipient's key or PIN
message[subject] Subject of the message
message[body] Body of the message
Response Format
The message resource collection provides 3 formats
html, xml, json
curl
curl -d "message[from]=email@host.domain&message[to]=recipient&message[subject]=subject&message[body]=body" https://www.getpushinbox.com/messages.xml
PHP
Ruby on Rails
self.site = "https://www.getpushinbox.com/"
# Optional
self.user = "your_push_inbox_username"
self.password = "your_push_inbox_password"
end
Message.create(
:from => 'email@host.domain', #Sender's email
:to => 'recipient key or pin', #Recipient's PIN or Key
:subject => 'Subject',
:body => 'Body'
)
More API specifications coming soon.