Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

RequestResponse
No Format
POST http://ertan.emakin.com/rest/v1/getTokenFromUserInfo
 
{
     "apiKey": "xxxx",
     "userInfo": {
     	"logonProviderproviderName": "LinkedIn",
        "id": "wcomx2h3jd",
        "name": "Ertan Tike",
        "email": "emakin@noreply.com",
     }
}
No Format
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
 
{"d":"41AA3CE3CAFB..............BF8114"}

...

Required Scope

module_execute

Parameters

Parameter NameDescription
apiKeyCaller system indentifier
logonIdUser logon id
logonProviderUser logon provider.
processName or id of process
moduleName of module
functionName of function
argumentsArray of function parameters

Example Call

RequestResponse
No Format
POST http://ertan.emakin.com/rest/v1/executeModule

{
     "apiKey": "xxxx",
     "logonId": "user@emakin.com",
     "logonProvider": "Organization",
     "process" : "myprocess",
     "module": "mymodule",
     "function": "myfunction",
     "arguments": ["arg1","arg2"]
}
No Format
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
     // function result
}

Trigger

Triggers an event for listeners on all processes and returns array of id number of triggered work items. When there is no listener return value is a empty array.

...