REST API Documentation

API v1 » upload_and_create_gift (POST)

Description

This API endpoint is used for uploading and creating a gift on gwitr. If you receive an HTTP 200 OK header, you can assume the gift was successfully uploaded and created. Please note that the message posted together with the gift will be publicly visible.

URL

http://www.gwitr.com/api/1/upload_and_create_gift.format

Available Formats

XML, JSON

HTTP Method

POST

Requires Authentication

Yes

Headers

X-Verify-Credentials-Authorization (Required)
Header Example

                OAuth realm="http://api.twitter.com/",
                oauth_consumer_key="GEdtIQH8jhtmLUyph82g",
                oauth_signature_method="HMAC-SHA1",
                oauth_token="414767-Jxq8aYUDRmykzVKwgoBhXSs67TEa3ruc4GJC2rWimw",
                oauth_timestamp="1272325550",
                oauth_nonce="oElnnwTQIZbqvlyXM58aBLAf5noGD0AQR8Fma7Q6Y",
                oauth_version="1.0",
                oauth_signature="U2obRfE7Rs9J1kefTGwuvLJdsbo%3D"
            

X-Auth-Service-Provider (Required)
https://api.twitter.com/1/account/verify_credentials.json

Rate Limited

Yes

Parameters

Responses

Sample XML Response

                <?xml version="1.0" encoding="UTF-8"?>
                <gift>
                    <id>8t</id>
                    <url>http://www.gwitr.com/8t</url>
                </gift>
            

Sample JSON Response

            {
                "gift":
                    [
                        {
                            "id":"8t",
                            "url":"http://www.gwitr.com/8t"
                        }
                    ]
            }