Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Engagement Designer » Need sample PHP code to post JSON to invoke Workflow   XML
 
Author Message
NiponMaluengnont



Joined: 11/02/2014 23:09:08
Messages: 4
Offline

I would like to have some sample PHP code which can be used to invoke Workflow to match Event Catalog which configures in SMGR. I can use POSTMAN in Chrome to post them but don't know how to code PHP for this to work.

My Event Catalog have following
Family = Demo
Type = HTTP Request
Version = 1
Schema Name = http_request
Schema Type = JSON
Schema = {title:emailVideoStartOutputSchema,type:object,properties:
{
emailRecipient:{type:string},
emailSubject:{type:string},
emailBody:{type:string},
emailSender:{type:string},
videoSubject:{type:string},
videoDescription:{type:string},
videoDurationDays:{type:string},
videoDurationHours:{type:string},
videoDurationMinutes:{type:string},
videoMaxParticipants:{type:string},
videoModeratorPin:{type:string},
videoParticipantPin:{type:string},
videoStartYear:{type:string},
videoStartMonth:{type:string},
videoStartDate:{type:string},
videoStartHour:{type:string},
videoStartMinute:{type:string}
}
}

Vishal-Avaya



Joined: 24/07/2014 16:30:45
Messages: 45
Offline

You will have to use curl extension. Same samples here:
http://stackoverflow.com/questions/9802788/call-a-rest-api-in-php
 
 
Go to: