| URL | https://api.taykt.com/message/{word} |
| HTTP Method | PUT |
| Requires Authentication | Yes |
Example
curl -v -u someone@example.com:password https://api.taykt.com/message/fruit -T -
The above command will prompt you for body content; to send content finish with ctrl + D
Response
If the operation is successful the status will be 200 and depending on the accept type the response body will be one of the following:
XML Response
<?xml version="1.0" encoding="UTF-8"?>
<message mt_text="Bananas are yummy." word="fruit"></message>
JSON Response
{
"message" : "I like Bananas",
"word" : "fruit"
}
| URL | https://api.taykt.com/message/{word} |
| HTTP Method | GET |
| Requires Authentication | Yes |
Example
curl -v -u someone@example.com:password https://api.taykt.com/message/fruit
Response
If the operation is successful the status will be 200 and depending on the accept type the response body will be one of the following:
XML Response
<message expiry_date="20090715"
mt_text="I like bananas"
word="fruit"
self="https://api.taykt.com//message/fruit">
<stats count="0"/>
<mo_messages href="https://api.taykt.com/mo_message/fruit"/>
</message>
JSON Response
{
"message" : {
"expiry_date" : "20091204",
"mt_text" : "Apples are better.",
"word" : "fruit",
"self" : "http://localhost:8080/message/fruit",
"count" : 0
"href" : "http://localhost:8080/mo_message/fruit"
}
}
| URL | https://api.taykt.com/message/{word} |
| HTTP Method | POST |
| Requires Authentication | Yes |
Example
curl -v -u someone@example.com:password https://api.taykt.com/message/fruit -X POST-T -
The above command will prompt you for body content; to send content finish with ctrl + D
Response
If the operation is successful the response body will be empty and the status will be 200.
| URL | https://api.taykt.com/message/{word} |
| HTTP Method | DELETE |
| Requires Authentication | Yes |
Example
curl -v -u someone@example.com:password https://api.taykt.com/message/fruit -X DELETE
The above command will prompt you for body content; to send content finish with ctrl + D
Response
If the operation is successful the response body will be empty and the status will be 200.