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": "GET", | |
"url": "http://api.marketcloud.it/v0/brands", | |
"httpVersion": "HTTP/1.1", | |
"cookies": [], | |
"headers": [ | |
{ "name": "X-Auth-Token", "value": "YOUR_TOKEN_HERE" } | |
], | |
"queryString" : [] | |
} |
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": "GET", | |
"url": "http://api.marketcloud.it/v0/products/22", | |
"httpVersion": "HTTP/1.1", | |
"cookies": [], | |
"headers": [ | |
{ "name": "Accept", "value": "application/json" }, | |
{ "name": "Content-Type", "value": "application/json" }, | |
{ "name": "X-Auth-Token", "value": "YOUR_TOKEN_HERE" } | |
], |
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
//Usual express config | |
var SessionSockets = require('session.socket.io'), | |
sessionSockets = new SessionSockets(io, sessionStore, cookieParser); //sessionStore and cookieParser are from connect/express | |
sessionSockets.on("connection",function(err,socket,session) { | |
if (err) | |
console.log(err); | |
else { | |
console.log("Joining channel "+session.username); | |
socket.join(session.username); //This creates a socket.io room with a single socket. |
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 | |
class Pirate | |
{ | |
public function doPirateStuff() | |
{ | |
echo "YARRRRRRRR I SINK SHIPS!"; | |
} | |
} | |
class Cyborg |
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 | |
namespace qoo\core; | |
/** |
NewerOlder