Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $french_name = urlencode($product['french_name']);
- $french_description = urlencode($product['french_description']);
- $french_short_description = urlencode($product['french_ShortDescription']);
- $lien = "https://api.deepl.com/v2/translate?auth_key=bd55c7a0-8e0c-dccc-ac44-7e8301a201c2&text=$french_name&text=$french_description&text=$french_short_description&target_lang=ES&tag_handling=xml";
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_URL, $lien);
- curl_setopt($curl, CURLOPT_POST, true);
- var_dump(curl_error($curl));
- $return = curl_exec($curl);
- curl_close($curl);
- var_dump($return);
- die();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement