Skip to content

Commit

Permalink
fix readme file
Browse files Browse the repository at this point in the history
fixed typo
  • Loading branch information
PacoVu committed Nov 16, 2015
1 parent 5be67f0 commit d4b6131
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,11 @@ HODClient class exposes source code so you can modify it as you wish.

* this function will throw an error if the operation failed.

*Example code:*
Parse a JSON string contained a jobID and call the function to get content from Haven OnDemand server.
*Example code:*##
// Parse a JSON string contained a jobID and call the function to get content from Haven OnDemand server.

##

func requestCompleted($response) {
function requestCompleted($response) {
$jobID = json_decode($response);
try {
$hodClient->GetJobResult($jobID->jobID, 'requestCompletedWithContent');
Expand All @@ -172,15 +171,15 @@ Parse a JSON string contained a jobID and call the function to get content from
#
When you call the GetRequest() or PostRequest() with the ASYNC mode, the response in a callback function will be a JSON string containing a jobID.

func requestCompletedWithJobId(response:String)
{
function requestCompletedWithJobId($response)
{
// parse the response to get the jobID
}
#
When you call the GetRequest() or PostRequest() with the SYNC mode or call the GetJobResult(), the response in a callback function will be a JSON string containing the actual result of the service.

func requestCompletedWithContent(response:String)
{
function requestCompletedWithContent($response)
{
// parse the response to get content values
}

Expand Down

0 comments on commit d4b6131

Please sign in to comment.