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
{ | |
status: 200|404|1001|1002|1003|1004, | |
errors: [ | |
{}//Only present if status != 200 | |
], | |
body: '<The response from the remote site>', | |
contentType:'<The content type of the response>', | |
charset:'<The character set encoding of the response', | |
cookies:[ | |
{ |
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
var res = $fh.web( 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
$fh.web( parameters, callback ); |
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
$fh.web( { | |
url: 'http://www.example.com/service', | |
method: 'POST', | |
charset: 'UTF-8', | |
contentType: 'text/json', | |
body: 'request_body', | |
params: [ | |
{name:'param_name', value:'param_value'} | |
] | |
headers: [ |
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
$fh.stringify( {testVar:"testValue", anArray:["val1","val2"]} ); |
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
$fh.ready( {}, | |
function () { | |
// Make device calls | |
}, | |
function(code,errorprops,params) {...} ); |
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
{ | |
fields : {'author': <feed entry author>, 'title': <feed entry title>, 'description' : <feed entry descrption/content> } | |
} |
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
{ | |
list: <A json array of feed entry json objects> | |
} |
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
var entries = $fh.feed( | |
{ | |
'link': 'http://www.feedhenry.com/feed', | |
'list-max' : 10 | |
} | |
); |
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
$fh.parse( '{"testVar":"testValue", "anArray":["val1","val2"]}' ); |