Created
February 3, 2021 19:24
-
-
Save djoo/e0d60a3415c1f48dfe7ffc7cdbe08b66 to your computer and use it in GitHub Desktop.
Zoho deluge Import Media Wordpress Library
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
downloadPhoto1 = invokeurl | |
[ | |
url: "https://media-cdn.tripadvisor.com/media/photo-s/0f/49/47/99/chambre-case-plage.jpg" | |
type: GET | |
]; | |
//Ajout de la photo dans une liste | |
files = List(); | |
downloadPhoto1.setParamName("file"); | |
files.add(downloadPhoto1); | |
//Envoie de la photo dans la mediatheque Wordpress | |
create_photo1_CMS = invokeurl | |
[ | |
url :apiWpUrlEndpointMedia | |
type : POST | |
files : files | |
connection:"wpconnection" | |
]; | |
idPhoto1 = create_photo1_CMS.getJson("id"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment