Skip to content

How to create session using cvent API #3

@amit4mins

Description

@amit4mins

HI,

I was trying to add new session to an event on cvent using API.
I used CreateSession call to create a new session under an event but its not working till now.
I dont know what wrong i am doing. I am pasting my code here:

      $sessionData = (object) array(
                'EventID'   =>  'MY EVENT CODE',
                'Session'   =>array(
                     array(
                         'ProductName' => "API test session",
                         'ProductType' => 'Session',
                         'StartTime' => '01/22/2016 6:00 PM',
                         'EndTime' => '01/25/2016 6:00 PM',
                         'ProductDescription' => 'Test Description'
                )
    ));
    $response = $this->client->CreateSession($sessionData);
    print_r($response);
    die;

Its not giving me any error.
If there is any mistake is this code please let me know. Your any help will be appreciated.

Many Thanks,
Amit Kumar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions