Jump to content

Abdullah

Regular Collector
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Abdullah

  • Rank
    Junior Member
  1. You have passed like this : configoptions is send like this: array(base64_encode(serialize(array("2" => 2))), base64_encode(serialize(array("10" => 21)))); => ouput is [YToxOntpOjI7aToyO30=, YToxOntpOjEwO2k6MjE7fQ==] But I have passed like this and its worked for me : // Geting IDs for config options $operating_system = ["2" => 2]; $cpanel_cloud_license = ["10" => 21]; // Config Options Array Merge for multiple config options $configoptions_array_merge = $operating_system + $cpanel_cloud_license; // Config Options Array Formatted for WHMCS API $configoptions_array[] = base64_encode(serialize($configoptions_array_merge)); // Sending to API 'configoptions' => isset($configoptions_array) ? $configoptions_array : '', MUST Remember : Your Output is : [YToxOntpOjI7aToyO30=, YToxOntpOjEwO2k6MjE7fQ==] But Correct Output will be only one always, doesn't matter how many arrays you have passed. Correct Output will be : [YToxOntpOjI7aToyO30=]
  2. I am trying to upload attachments through Developers API for Open Ticket by using $_FILES super global variable. But I am not able to send properly the attachments. Can you please give some examples to open ticket API through $_FILES ? I have read : https://developers.whmcs.com/api-reference/openticket/ this documentation. Thanks in Advance for your help. ūüôā
  3. You need to pass xml string using this simplexml_load_string() php funtion. Example : simplexml_load_string($xml); Source : https://stackoverflow.com/questions/8546573/pass-xml-to-php-function
  4. Welcome to WHMCS.Community Abdullah! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated