Qube One ltd
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection for Contact Form 7] Redirect based on two inputsYou can now use our premium plugin for that and set up conditional rules for redirections and much more
Forum: Plugins
In reply to: [Contact form 7 TO API] Error log in debug logIt seems that your json structure is somewhere incorrect
Forum: Plugins
In reply to: [Contact form 7 TO API] Additional form fields under API Integrationwill keep this in mind for the next version
ThanksForum: Plugins
In reply to: [Contact form 7 TO API] Display JSON ResponseSorry not at the moment
Forum: Plugins
In reply to: [Contact form 7 TO API] Form Fields emptyCan you please add a screenshot of the problem ?
Forum: Plugins
In reply to: [Contact form 7 TO API] Redirect to news page with API resultsSorry this is not supported at the moment
Forum: Plugins
In reply to: [Contact form 7 TO API] JSON Not escapedYou can manipulate the data that is being sent using this filter
There you can do whatever you like with the requestFor example:
add_filter( ‘qs_cf7_api_get_args’ , ‘change_the_json_structure’ ); function change_the_json_structure( $args ){ $json = $args[‘body’]; $json = stripslashes( $json ); $args[‘body’] = $json; //this will probably break the json because in your example the json is escaped correctly //dont forget to return the args return $args; }- This reply was modified 8 years ago by Qube One ltd.
- This reply was modified 8 years ago by Qube One ltd.
Forum: Plugins
In reply to: [Contact form 7 TO API] Line breaks break APIYou can manipulate the data that is being sent using this filter
There you can do whatever you like with the requestFor example:
add_filter( ‘qs_cf7_api_get_args’ , ‘change_the_json_structure’ );function change_the_json_structure( $args ){
$json = $args[‘body’];
$json = stripslashes( $json );
$args[‘body’] = $json; //this will probably break the json because in your example the json is escaped correctly
//dont forget to return the args
return $args;
}Forum: Plugins
In reply to: [Contact form 7 TO API] Multiple Endingpoints Submitsat the moment it is not supported but you could use the ‘after_qs_cf7_api_send_lead’ hook to send it again yourself
add_action( 'after_qs_cf7_api_send_lead' , 'send_it_again_to_another_api' , 10 ,2 ); function send_it_again_to_another_api( $result , $record ){ //you have access to the $record here so you can do whatever you like with it //write your own function to send the $record to another API }- This reply was modified 8 years ago by Qube One ltd.
Forum: Plugins
In reply to: [Contact form 7 TO API] Special characters reverting from codeYou can use the cf7api_create_record hook to fix the record as you wish
add_filter( 'cf7api_create_record' , 'fix_encoding_or_something_else' , 10 , 5 ); function fix_encoding_or_something_else( $record , $submited_data , $qs_cf7_data_map , $type , $template ){ //manipulate the record as you see fit ($record) //dont forget to return the $record return $record; }- This reply was modified 8 years ago by Qube One ltd.
Forum: Plugins
In reply to: [Contact form 7 TO API] what am i missingIt seems like you are not structuring the json data correctly
Check to see if it is according to your API providerForum: Plugins
In reply to: [Contact form 7 TO API] How to properly structure JSONWell it depends on the Endpoint API
You need to ask the API provider for the correct json structureForum: Plugins
In reply to: [Contact form 7 TO API] Get responseYou can use the action hook
add_action('after_qs_cf7_api_send_lead' , 'do_something_with_the_result' , 10 , 2); function do_something_with_the_result( $result , $record ){ //do whatever you like with the $result // you also have access here to the original $record }- This reply was modified 8 years ago by Qube One ltd.
Forum: Plugins
In reply to: [Contact form 7 TO API] x api key and authorizationyou can user the available get/post filters to add authorization headers
for example
add_filter( 'qs_cf7_api_get_args' , 'add_auth_headers' ); add_filter( 'qs_cf7_api_get_args' , 'add_auth_headers' ); function add_auth_headers( $args ){ //for example $args['headers']['Authorization'] = 'Basic ASJKH23HKSS' ; }- This reply was modified 8 years ago by Qube One ltd.
Forum: Plugins
In reply to: [Contact form 7 TO API] How to handle files?It is not supported at the moment
But you can user the available filters to handle files$record = apply_filters( 'cf7api_create_record', $record , $submited_data , $qs_cf7_data_map , $type , $template );something like this
add_filter('cf7api_create_record' , 'my_send_file' , 10 , 5 ); function my_send_file( $record , $submited_data , $qs_cf7_data_map , $type , $template ){ //add the file data from ths submitted data to the $record //dont forget to return the update record return $record; }- This reply was modified 8 years ago by Qube One ltd.