Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mpetyx/9952200 to your computer and use it in GitHub Desktop.
Save mpetyx/9952200 to your computer and use it in GitHub Desktop.
response from mule studio apikit for twitter.raml example
{"context":"while validating security scheme","context_mark":null,"message":"requestTokenUri must be a URL","problem_mark":{"name":"http://localhost:8081/api","line":24,"column":16,"buffer":"#%RAML 0.8\ntitle: \"Twitter API\"\nversion: \"1.1\"\nbaseUri: \"http://localhost:8081/api\"\nmediaType: \"application/json\"\nresourceTypes: \n - \n \"base\": \n displayName: \"base\"\ntraits: \n - \n \"nestedable\": \n displayName: \"nestedable\"\n - \n \"trimmable\": \n displayName: \"trimmable\"\nsecuritySchemes: \n - \n \"oauth_1_0\": \n description: |\n Twitter offers applications the ability to issue authenticated requests on \n behalf of the application itself (as opposed to on behalf of a specific user). \n type: \"OAuth 1.0\"\n settings: \n \"requestTokenUri\": [\"https://api.twitter.com/oauth/request_token\"]\n \"authorizationUri\": [\"https://api.twitter.com/oauth/authorize\"]\n \"tokenCredentialsUri\": [\"https://api.twitter.com/oauth/access_token\"]\nsecuredBy: \n - \n oauth_1_0\n\"/statuses\": \n \"/oembed{mediaTypeExtension}\": \n uriParameters: \n \"mediaTypeExtension\": \n description: \"Use .json to specify application/json media type.\"\n type: string\n required: false\n repeat: false\n enum: [\".json\"]\n type: \"base\"\n get: \n description: |\n Returns information allowing the creation of an embedded representation \n of a Tweet on third party sites. See the oEmbed specification for information \n about the response format.\n While this endpoint allows a bit of customization for the final appearance \n of the embedded Tweet, be aware that the appearance of the rendered Tweet may \n change over time to be consistent with Twitter's Display Requirements. Do not \n rely on any class or id parameters to stay constant in the returned markup.\n queryParameters: \n \"id\": \n description: \"The Tweet/status ID to return embed code for.\"\n type: integer\n required: true\n repeat: false\n \"url\": \n description: \"The URL of the Tweet/status to be embedded.\"\n type: string\n required: true\n repeat: false\n \"maxwidth\": \n description: |\n The maximum width in pixels that the embed should be rendered at.\n type: integer\n required: false\n repeat: false\n minimum: 250.0\n maximum: 550.0\n \"hide_media\": \n description: |\n Specifies whether the embedded Tweet should automatically expand \n images which were uploaded via POST statuses/update_with_media. \n When set to either true, t or 1 images will not be expanded. \n type: string\n required: false\n repeat: false\n enum: [\"0\", \"1\", \"true\", \"false\", \"t\", \"f\"]\n default: \"false\"\n \"hide_thread\": \n description: |\n Specifies whether the embedded Tweet should automatically show the \n original message in the case that the embedded Tweet is a reply. When \n set to either true, t or 1 the original Tweet will not be shown. \n type: string\n required: false\n repeat: false\n enum: [\"0\", \"1\", \"true\", \"false\", \"t\", \"f\"]\n default: \"false\"\n \"omit_script\": \n description: |\n Specifies whether the embedded Tweet HTML should include a <script> \n element pointing to widgets.js. In cases where a page already includes \n widgets.js, setting this value to true will prevent a redundant script \n element from being included. When set to either true, t or 1 the <script> \n element will not be included in the embed HTML, meaning that pages must \n include a reference to widgets.js manually.\n type: string\n required: false\n repeat: false\n enum: [\"0\", \"1\", \"true\", \"false\", \"t\", \"f\"]\n \"align\": \n description: |\n Specifies whether the embedded Tweet should be left aligned, right aligned, \n or centered in the page. Valid values are left, right, center, and none. \n Defaults to none, meaning no alignment styles are specified for the Tweet.\n type: string\n required: false\n repeat: false\n enum: [\"left\", \"right\", \"center\", \"none\"]\n default: \"none\"\n \"related\": \n description: |\n A value for the TWT related parameter, as described in Web Intents. This \n value will be forwarded to all Web Intents calls.\n type: string\n required: false\n repeat: false\n \"lang\": \n description: |\n Language code for the rendered embed. This will affect the text and \n localization of the rendered HTML.\n type: string\n required: false\n repeat: false\n responses: \n \"200\": \n description: \"Example is not provided by twitter docs.\"\n \"304\": \n description: \"There was no new data to return.\"\n \"400\": \n description: |\n The request was invalid or cannot be otherwise served. An accompanying \n error message will explain further. In API v1.1, requests without \n authentication are considered invalid and will yield this response.\n \"401\": \n description: \"Authentication credentials were missing or incorrect.\"\n \"403\": \n description: |\n The request is understood, but it has been refused or access is not \n allowed. An accompanying error message will explain why. This code is \n used when requests are being denied due to update limits.\n \"404\": \n description: |\n The URI requested is invalid or the resource requested, such as a user, \n does not exists. Also returned when the requested format is not supported \n by the requested method.\n \"406\": \n description: |\n Returned by the Search API when an invalid format is specified in the \n request.\n \"410\": \n description: |\n This resource is gone. Used to indicate that an API endpoint has been \n turned off. For example: \"The Twitter REST API v1 will soon stop \n functioning. Please migrate to API v1.1.\"\n \"420\": \n description: |\n Returned by the version 1 Search and Trends APIs when you are being rate \n limited.\n \"422\": \n description: |\n Returned when an image uploaded to POST account/update_profile_banner is \n unable to be processed.\n \"429\": \n description: |\n Returned in API v1.1 when a request cannot be served due to the \n application's rate limit having been exhausted for the resource. See Rate \n Limiting in API v1.1.\n \"500\": \n description: |\n Something is broken. Please post to the group so the Twitter team can \n investigate.\n \"502\": \n description: \"Twitter is down or being upgraded.\"\n \"503\": \n description: |\n The Twitter servers are up, but overloaded with requests. Try again later.\n \"504\": \n description: |\n The Twitter servers are up, but the request couldn't be serviced due to \n some failure within our stack. Try again later.\n \"/retweets_of_me{mediaTypeExtension}\": \n uriParameters: \n \"mediaTypeExtension\": \n description: \"Use .json to specify application/json media type.\"\n type: string\n required: false\n repeat: false\n enum: [\".json\"]\n type: \"base\"\n get: \n description: |\n Returns the most recent tweets authored by the authenticating user that \n have been retweeted by others. This timeline is a subset of the user's GET \n statuses/user_timeline.\n queryParameters: \n \"count\": \n description: |\n Specifies the number of records to retrieve. Must be less than or equal \n to 100. If omitted, 20 will be assumed.\n type: integer\n required: false\n repeat: false\n maximum: 100.0\n default: \"20\"\n \"since_id\": \n description: |\n Returns results with an ID greater than (that is, more recent than) the \n specified ID. There are limits to the number of Tweets which can be accessed \n through the API. If the limit of Tweets has occured since the since_id, the \n since_id will be forced to the oldest ID available.\n type: integer\n required: false\n repeat: false\n \"max_id\": \n description: |\n Returns results with an ID less than (that is, older than) or equal to \n the specified ID.\n type: integer\n required: false\n repeat: false\n \"include_user_entities\": \n description: \"The user entities node will be disincluded when set to false.\"\n type: string\n required: false\n repeat: false\n \"include_entities\": \n description: \"The entities node will not be included when set to false.\"\n type: string\n required: false\n repeat: false\n enum: [\"0\", \"1\", \"true\", \"false\", \"t\", \"f\"]\n \"trim_user\": \n description: |\n When set to either true, t or 1, each tweet returned in a timeline will \n include a user object including only the status authors numerical ID. \n Omit this parameter to receive the complete user object.\n type: string\n required: false\n repeat: false\n enum: [\"0\", \"1\", \"true\", \"false\", \"t\", \"f\"]\n responses: \n \"200\": \n description: \"Success!\"\n body: \n \"application/json\": \n schema: |\n {\n \"\": \"http://json-schema.org/draft-03/schema\",\n \"type\": \"object\",\n \"properties\": {\n \"\": [\n {\n \"properties\": {\n \"coordinates\": {\n \"properties\": {\n \"coordinates\": [\n {\n \"type\": \"number\"\n }\n ],\n \"type\": {\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"truncated\": {\n \"type\": \"boolean\"\n },\n \"favorited\": {\n \"type\": \"boolean\"\n },\n \"created_at\": {\n \"type\": \"string\"\n },\n \"id_str\": {\n \"type\": \"string\"\n },\n \"in_reply_to_user_id_str\": {\n \"type\": \"string\"\n },\n \"entities\": {\n \"media\": [\n {\n \"properties\": {\n \"id\": {\n \"type\": \"integer\"\n },\n \"id_str\": {\n \"type\": \"string\"\n },\n \"media_url\": {\n \"type\": \"string\"\n },\n \"media_url_https\": {\n \"type\": \"string\"\n },\n \"url\": {\n \"type\": \"string\"\n },\n \"display_url\": {\n \"type\": \"string\"\n },\n \"expanded_url\": {\n \"type\": \"string\"\n },\n \"sizes\": {\n \"large\": {\n \"w\": {\n \"type\": \"integer\"\n },\n \"resize\": [\n \"crop\",\n \"fit\"\n ],\n \"h\": {\n \"type\": \"integer\"\n }\n },\n \"medium\": {\n \"w\": {\n \"type\": \"integer\"\n },\n \"resize\": [\n \"crop\",\n \"fit\"\n ],\n \"h\": {\n \"type\": \"integer\"\n }\n },\n \"small\": {\n \"w\": {\n \"type\": \"integer\"\n },\n \"resize\": [\n \"crop\",\n \"fit\"\n ],\n \"h\": {\n \"type\": \"integer\"\n }\n },\n \"thumb\": {\n \"w\": {\n \"type\": \"integer\"\n },\n \"resize\": [\n \"crop\",\n \"fit\"\n ],\n \"h\": {\n \"type\": \"integer\"\n }\n }\n },\n \"type\": \"array\",\n \"indices\": [\n {\n \"type\": \"integer\"\n }\n ]\n },\n \"type\": \"object\"\n }\n ],\n \"type\": \"array\",\n \"urls\": [\n {\n \"properties\": {\n \"url\": {\n \"type\": \"string\"\n },\n \"display_url\": {\n \"type\": \"string\"\n },\n \"expanded_url\": {\n \"type\": \"string\"\n },\n \"indices\": [\n {\n \"type\": \"integer\"\n }\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment