Search in this section

Child pages
  • Request Element
Skip to end of metadata
Go to start of metadata


Table of contents

Description

The request element defines the structure of the request which can be sent to the API.

Structure

KeyOccursTypeFormatDescription
auth0 - 1objectUser

The authentification

owner0 - 1objectUserThe subuser
task0 - 1componentTaskThe request

XML Example

XML Example
<request>
    <auth>
	...
	</auth>
    <owner>
	...
	</owner>
    <task>
	...
	</task>
</request>

Code Example

Where Component Java
@XmlRootElement(name = "request")
public class Request {

    @XmlElement(name="auth")
    private User auth;

    @XmlElement(name="owner")
    private User owner;

    @XmlElement(name="task")
    private Task task;

    /* Getter + Setter */

}
Where Component PHP
class Request {

    /**
     *
     * @var type User
     */
    public $auth;

    /**
     *
     * @var type User
     */
    public $owner;

    /**
     *
     * @var type Task
     */
    public $task;

    /* Getter + Setter */

}
Where Component C#
public class Request {

    private User auth;

    private User owner;

    private Task task;

    /* Getter + Setter */

}