WeFact Hosting API versie 2.7



Tickets

Tickets zijn te beheren via de controller 'ticket'.



changeowner

Middels deze functie kunt u het ticket toewijzen aan een (andere) medewerker.

Voorbeeldbestand: /voorbeelden/ticket/ticket.changeowner.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een ticket
TicketID string Het ticketnummer
Owner int De unieke ID van een medewerker
Verplichte velden: Identifier of TicketID, Owner

Voorbeeld invoer:
<?php

require_once("../wefact_api.php");

$api = new WeFactAPI();

$ticketParams = array(
				'TicketID'		=> 'T20160001',
				'Owner'			=> 2
);

$response = $api->sendRequest('ticket', 'changeowner', $ticketParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => ticket
    [action] => changeowner
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [ticket] => Array
        (
            [Identifier] => 1
            [TicketID] => T20160001
            [Debtor] => 1
            [DebtorCode] => DB0001
            [EmailAddress] => info@company.com
            [CC] => 
            [Type] => ticket
            [Date] => 2016-07-14 15:08:04
            [Subject] => Ticket test
            [Owner] => 2
            [Priority] => 0
            [Status] => 1
            [Comment] => 
            [Number] => 2
            [LastDate] => 2016-09-13 16:24:50
            [LastName] => WeFact - WeFact
            [TicketMessages] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 2
                            [Date] => 2016-09-13 16:24:50
                            [Subject] => Ticket test
                            [Attachments] => Array
                                (
                                    [0] => Array
                                        (
                                            [name] => example.txt
                                            [location] => documents/tickets/T20160001/example.txt
                                            [type] => unknown
                                            [extension] => txt
                                            [filesize] => 0.0400390625
                                        )

                                )

                            [Base64Message] => PGh0bWw+DQo8aGVhZD4NCgk8dGl0bGU+PC90aXRsZT4NCjwvaGVhZD4NCjxib2R5PldpdGggYSByZXNwb25zZTwvYm9keT4NCjwvaHRtbD4NCg==
                            [SenderID] => 1
                            [SenderName] => WeFact
                            [SenderEmail] => info@wefact.nl
                        )

                    [1] => Array
                        (
                            [Identifier] => 1
                            [Date] => 2016-07-14 15:08:04
                            [Subject] => Ticket test
                            [Attachments] => 
                            [Base64Message] => PGh0bWw+DQo8aGVhZD4NCgk8dGl0bGU+PC90aXRsZT4NCjwvaGVhZD4NCjxib2R5PkhlbGxvLCB0aGlzIGlzIGEgdGlja2V0IHRlc3Q8L2JvZHk+DQo8L2h0bWw+DQo=
                            [SenderID] => 1
                            [SenderName] => WeFact
                            [SenderEmail] => info@wefact.nl
                        )

                )

            [Translations] => Array
                (
                    [Status] => Open
                    [Priority] => Normaal
                )

        )

)