This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<api format="JSON"> | |
<authentication type="header"> | |
<description><![CDATA[This is a simple header authentication]]><description> | |
<parameters> | |
<parameter name="X-Pippo-Username" optional="false"> | |
<description><![CDATA[Please enter here your username]]></description> | |
</parameter> | |
<parameter name="X-Pippo-Password" optional="false"> | |
<description><![CDATA[Please enter here your password]]></description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("Bitly.php"); | |
$bitly = new Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY"); | |
// ... | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<api xmlns="http://mashape.com" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://mashape.com http://mashape.com/schema/mashape-api-3.0.xsd"> | |
<method name="Get User" http="GET"> | |
<url><![CDATA[/users/{id}]]></url> | |
<parameters> | |
<parameter optional="false">id</parameter> | |
</parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<api xmlns="http://mashape.com" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://mashape.com http://mashape.com/schema/mashape-api-3.0.xsd"> | |
<!-- Your methods and objects here --> | |
</api> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<api xmlns="http://mashape.com" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://mashape.com http://mashape.com/schema/mashape-api-3.0.xsd"> | |
<method name="Get User" http="GET"> | |
<url><![CDATA[/users/{id}]]></url> | |
<parameters> | |
<parameter optional="false">id</parameter> | |
</parameters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "Mark", | |
"email": "mark@somedomain.com", | |
"age": 23 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<object name="User"> | |
<field>username</field> | |
<field>email</field> | |
<field>age</field> | |
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<method name="Get User" http="GET"> | |
<url><![CDATA[/users/{id}]]></url> | |
<parameters> | |
<parameter optional="false">id</parameter> | |
</parameters> | |
<result object="User"/> | |
</method> | |
<object name="User"> | |
<field>username</field> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "Mark", | |
"emails": [ | |
"mark@mashape.com", | |
"marco@mashape.com" | |
], | |
"age": 23, | |
"comments": [ | |
{ | |
"text": "I like this", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<object name="User"> | |
<field>username</field> | |
<field>age</field> | |
<field array="true">emails</field> | |
<field array="true" object="Comment">comments</field> | |
</object> | |
<object name="Comment"> | |
<field>id</field> | |
<field>text</field> | |
</object> |
OlderNewer