Advertisement
Guest User

EE3 register event

a guest
Dec 9th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. $data = array(
  2.     "body"=>json_encode(array(
  3.         "Registrations" => array(
  4.             "Event"=>array(
  5.                 "id" => 1
  6.             ),
  7.             "id"=>"temp-reg1",
  8.             "status"=>"approved",
  9.             "date_of_registration"=>"2015-12-09 14:12:31",
  10.             "final_price"=>0,
  11.             "code"=>"1-50c67a6f172e1",
  12.             "url_link"=>null,
  13.             "is_primary"=>true,
  14.             "is_group_registration"=>false,
  15.             "is_going"=>true,
  16.             "is_checked_in"=>false,
  17.             "Transaction"=>array(
  18.                 "id"=>"temp-new-one3",
  19.                 "timestamp"=>"2015-12-09 14:12:31",
  20.                 "total"=>0,
  21.                 "amount_paid"=>0,
  22.                 "status"=>"complete",
  23.                 "details"=>null,
  24.                 "tax_data"=>null,
  25.                 "session_data"=>null,
  26.                 "payment_gateway"=>"Check"
  27.             ),
  28.             "Attendee"=>array(
  29.                 "id"=>"temp-new-one2",
  30.                 "firstname"=>"fromapi",
  31.                 "lastname"=>"fromapiman",
  32.                 "address"=>"",
  33.                 "address2"=>"",
  34.                 "city"=>"",
  35.                 "state"=>"",
  36.                 "country"=>"",
  37.                 "zip"=>"",
  38.                 "email"=>"michael@eventespresso.com",
  39.                 "phone"=>""
  40.             ),
  41.         )
  42.                
  43.     ))      
  44. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement