Created
February 3, 2021 19:22
-
-
Save djoo/65a6237c312b2109d9f10f952eb221c0 to your computer and use it in GitHub Desktop.
Zoho Deluge to Wordpress Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create_produit_CMS = invokeurl | |
[ | |
url :apiWpUrlEndpointPost | |
type :POST | |
parameters:data.toString() | |
connection:"wpconnextion" | |
content-type:"application/json" | |
]; | |
//Affichage des erreurs | |
responseData = create_produit_CMS.get("data"); | |
if(responseData != null) | |
{ | |
if(responseData.get("status") == 400) | |
{ | |
info "ERREUR A LA CREATION"; | |
info "Erreur retournée : "; | |
info create_produit_CMS; | |
info "Data envoyée : "; | |
info data; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment