phillipsdata / blesta_sdk Goto Github PK
View Code? Open in Web Editor NEWBlesta Software Development Kit
License: MIT License
Blesta Software Development Kit
License: MIT License
When submitting a POST/PUT/DELETE API request via BlestaApi, null values and their keys are removed from the request. This is because they are filtered through http_build_query before submission.
i.e. the following cURL option is set:
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args));
Consider updating this to:
curl_setopt($ch, CURLOPT_POSTFIELDS, $args);
If we do not filter $args through http_build_query, null values can be submitted to the API, which will then be aware that a certain key was provided, although it has no value. This can be useful in some instances, for example, if the all keys need to be provided.
Hi, I'm trying to create a client via api with these code:
$response = $api->post("clients", "create", array('username'=>'[email protected]',
'new_password'=>'123456',
'confirm_password'=>123456',
'client_group_id'=>'2',
'status'=>'active',
'first_name'=>'handoyo',
'last_name'=>'handoyo',
'email'=>'[email protected]',
'custom'=>array(),
'settings'=> array(
'default_currency'=>'USD',
'language'=>'en_us',
'username_type'=>'email',
'tax_id'=>'',
'tax_exempt'=>''
),
'send_registration_email'=>'true'
));
And I get a Internal 500 error. Did I miss some codes there? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.