Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:37:29+00:00 2026-06-05T04:37:29+00:00

Please save me stack overflow .. and I’m PRAYING someone has registered a participant

  • 0

Please save me stack overflow .. and I’m PRAYING someone has registered a participant using the API (and submitting an answer to a custom question).

Ok, so first off, here’s the documentation for create registrant:

POST https://api.citrixonline.com/G2W/rest/organizers/73563532324/webinars/89... HTTP/1.1
Accept: application/json
Accept: application/vnd.citrix.g2wapi-v1.1+json
Content-Type: application/json
Authorization: OAuth oauth_token={oauthToken}

{
  "firstName":"Saumil",
  "lastName":"Jhaveri",
  "email":"test@test.com",
  "address":"650+Townsend+St,+St.+325",
  "city":"San+Francisco",
  "state":"California",
  "zipCode":"94103",
  "country":"United+States",
  "phone":"3123751884",
  "industry":"Accounting",
  "organization":"Citrix",
  "jobTitle":"Software+Engineer",
  "purchasingTimeFrame":"13+months",
  "roleInPurchaseProcess":"Decision+Maker",
  "numberOfEmployees":"120",
  "questionsAndComments":"No+Comments!",
  "responses":[
    {
      "questionKey":152,
      "responseText":"Fantastic!"
    }, {
      "questionKey":151,
      "answerKey":152
    }
  ]
}

So, as you can see from the json rest example above, the REST body needs to be an array for the “normal” values such as name, email, etc…

If you look near the bottom of the example, you’ll see an array inside this array, called responses..

This array contains arrays of the custom question IDs and the user responses.

So what happens when there’s only one custom question?

I have tried:

array('firstName' => $fname, 'lastName' => $lname, 'email' => $em, 
'responses' => array('questionKey' => 300000000000042400, 'responseText' => $custom));

and also tried (an array of arrays even though there’s only one question):

array('firstName' => $fname, 'lastName' => $lname, 'email' => $em, 
'responses' => array(array('questionKey' => 300000000000042400, 'responseText' => $custom)));

If I run a json_encode on my data, This is the output

{
   "firstName":"Ellis",
   "lastName":"Ryan",
   "email":"ryanthecloser@gmail.com",
   "responses":[
      {
         "questionKey":3.0e+17,
         "responseText":"http:\/\/facebook.com\/doubleyourlikes"
      }
   ]
}

While I was typing this question, I think I see the issue … my json data (more specifically questionkey) is being converted to scientific notation … I tried submitting questionKey as a string, but that did not work..

I’m hoping the scientific notation is the problem. Anyone have any ideas how to make a number in php this big:
300000000000042400

And be able to encode_json without having the number converted? Or, if anyone has successfully gotten custom question responses to appear for a registrant using the api, please let me know!

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:37:31+00:00Added an answer on June 5, 2026 at 4:37 am

    sigh

    Passing the questionKey as a string is 100% fine, so that problem is gone…

    My issue was actually that there’s TWO versions of create registrant:

    Version one: accepts name and email and discards EVERYTHING else
    Version two: add
    Accept: application/vnd.citrix.g2wapi-v1.1+json

    to the headers to select the second version. The second version allows custom fields.

    Because I didn’t include the extra header param, my custom field data was discarded!

    Grrrr I read that tons of times in the documentation … RTM!, and DO what it says lol!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Stack Overflow has covered favorite short-cuts and add-ins, optimizations and preferences -- great topics
Please suggest me a method to save an XML file to the current installation
Please refer to the topic http://www.codeproject.com/KB/viewstate/SaveViewState.aspx . The topic demonstrates how you can save
Please have a look on the code below .. <div id=click_me>Save</div> <div id=blocks_sortable> <div
please give me some advice. I have to send email using SQL database mail.
I'm working on application which has workflow like this: 1.parsing home page (using HttpURLConnection,
I am developing a project that has a DateTime field. In it I'm using
I'm a novice, both here at stack overflow as well as on sql server,
in a previous question i was stumped.. but stack overflow provided the solution my
Great people of StackOverflow, save my ass please :) I've been trying to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.