Message

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 5. almost 2 years by jonoabroad
  2. 4. almost 2 years by jonoabroad
  3. 3. almost 2 years by jonoabroad
  4. 2. almost 2 years by jonoabroad
  5. 1. almost 2 years by jonoabroad
 

Create

URL https://api.taykt.com/message/{word}
HTTP Method PUT
Requires Authentication Yes
Parameters
  • word - the word that is texted into Taykt.

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"
}

Read

URL https://api.taykt.com/message/{word}
HTTP Method GET
Requires Authentication Yes
Parameters
  • word - the word that is texted into Taykt.

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">
<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>
</messag<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"
  }
}

Update

URL https://api.taykt.com/message/{word}
HTTP Method POST
Requires Authentication Yes
Parameters
  • word - the word that is texted into Taykt.
  • request body the new contents of the message

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.

Delete

URL https://api.taykt.com/message/{word}
HTTP Method DELETE
Requires Authentication Yes
Parameters
  • word - the word that is texted into Taykt

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.