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
<contact> | |
<firstname>Kin</firstname> | |
<lastname>Lane</lastname> | |
<age>38</age> | |
<website>apievangelist.com</website> | |
<address> | |
<streetaddress>123 2nd Street</streetaddress> | |
<city>New York</city> | |
<state>NY</state> | |
<postalcode>10021</postalcode> |
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
{ | |
"firstName": "Kin", | |
"lastName": "Lane", | |
"age": 38, | |
"website": “apievangelist.com”, | |
"address": | |
{ | |
"streetAddress": "123 2nd Street", | |
"city": "New York", | |
"state": "NY", |
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
POST /InStock HTTP/1.1 | |
Host: www.example.org | |
Content-Type: application/soap+xml; charset=utf-8 | |
Content-Length: 299 | |
<?xml version="1.0"?> | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> | |
<soap:Header> | |
</soap:Header> | |
<soap:Body> |
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
include 'XMPPHP/XMPP.php'; | |
require_once 'Zend/Loader.php'; | |
Zend_Loader::loadClass('Zend_Http_Client'); | |
Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); | |
// Path to Printer Capabilities in PPD Format | |
$Printer_Proxy = "[Your Print Proxy ID]"; | |
// Gmail User Email |
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
// Begin XMPP | |
$conn = new XMPPHP_XMPP('talk.google.com', 5222, $G_Email, $G_Pass, 'xmpphp', 'gmail.com', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_VERBOSE); | |
$conn->autoSubscribe(); | |
$vcard_request = array(); | |
//var_dump($conn); | |
try { |
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
<iq from='{Full JID}' to='{Bare JID}' type='set' id='1'> | |
<subscribe xmlns='google:push'> | |
<item channel='cloudprint.google.com/proxy/b{Proxy ID}' from='cloudprint.google.com'/> | |
</subscribe> | |
</iq> |
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
<iq to="{Full JID}" from="{Bare JID}" id="1" type="result"/> |
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
<message from="cloudprint.google.com" to="{Full JID}"> | |
<push:push channel="cloudprint.google.com/proxy/bcdf3feb8b6b2625104c8994e0927605" xmlns:push="google:push"> | |
<push:recipient to="{Bare JID}"> | |
</push:recipient> | |
<push:data>LTExMDM2MjYxMDk0MjU3NjQ5NTA=</push:data> | |
</push:push> | |
</message> |
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 "rest_client.php"; | |
if(isset($_POST['imgupload'])) | |
{ | |
$fileName = $_FILES['uploadFile']['name']; | |
$fileTempName = $_FILES['uploadFile']['tmp_name']; | |
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
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> | |
<p><a href="http://twitter.com/intent/tweet?in_reply_to=51113028241989632">Reply</a></p> | |
<p><a href="http://twitter.com/intent/retweet?tweet_id=51113028241989632">Retweet</a></p> | |
<p><a href="http://twitter.com/intent/favorite?tweet_id=51113028241989632">Favorite</a></p> |
OlderNewer