Giter Site home page Giter Site logo

Comments (3)

dpawluk avatar dpawluk commented on July 24, 2024

@pierrefaure

I'm able to do this just fine. Are you creating the array like this:

$ticket_data = array (
        'subject' => 'The quick brown fox jumps over the lazy dog', 
        'comment' => array (
            'body' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
        ),
        'requester' => array (
            'name' => 'Some Dude',
            'email' => '[email protected]'
        ),
        'priority' => 'normal'
);
$newTicket = $client->tickets()->create($ticket_data);
print_r ($newTicket);

from zendesk_api_client_php.

dpawluk avatar dpawluk commented on July 24, 2024

Note that it will still say the ticket was submitted on your behalf unless you have the requester's id and use that with submitter_id, but at least it won't look like you submitted this yourself. A workaround for new users is to create the user, then pass the the id from the new user object to the ticket as requester_id and submitter_id

from zendesk_api_client_php.

pierrefaure avatar pierrefaure commented on July 24, 2024

I probably did something wrong when I tried
It works perfectly now 👍

Thank you!

from zendesk_api_client_php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.