RemoteWorkflowCall class
RemoteWorkflowCall class
Class to call workflows on other sites.
Constructors
- (number resourceId "The resource id of the script to call on the foreign site", string username "The username on the foreign site", string password "The password on the foreign site") - Create new request
- (number resourceId "The resource id of the script to call on the foreign site", string username "The username on the foreign site", string password "The password on the foreign site", AnyType parameter "The parameter to call the workflow with on the foreign site") - Create new request
Methods
- AnyType Call(string site "Url of the site to call. E.g. cg.catglobe.com.") - Call the foreign site and get the result
- AnyType Call(HttpRequest request "Call using a premade object, in case it requires special settings.") - Call the foreign site and get the result
- [[HttpRequestName=CreateDefaultRequest_class|HttpRequestName=CreateDefaultRequest]] (string site "Url of the site to call. E.g. cg.catglobe.com.") - Create a request with the default settings
- string ToString() - The string representation of the object
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
More information about an HTTP Message: http://www.jmarshall.com/easy/http/
Examples
string uri = "http://google.com";
string responseString;
HttpRequest hr = new HttpRequest(uri);
WebResponse wr = hr.GetResponse();
responseString = wr.Response();
print(responseString);