![]() ![]() Once the cURL option is set we can perform our GET request. We need to explicitly reset it calling the function without parameters when we don't need the option anymore. One thing to remember is that the effects of BE_Curl_Set_Option don't reset after a call. The BaseElements plugin function to do this isīE_Curl_Set_Option ( "CURLOPT_CUSTOMREQUEST" "PROPFIND" ) The option to set is called CURLOPT_CUSTOMREQUEST and we have to set it to the value PROPFIND. ![]() The docs indicate that we need to perform a PROFIND request: to do the we need to set a cURL option before calling our GET request. The first step in the process is to retrieve the list of files and folders hosted in our account. We simply pass our username and password with the Get the Files and Folders List The Nextcloud API provides only Basic Auth without any API keys or Token. If you're not familiar with cURL, it is a library used to transfer data using various protocols and it is used in the HTTP functions in the BaseElements plugin. The implementation of these web services are quite different from the ones we covered in the previous posts ( Dropbox, Zendesk and Mailchimp).įirst of all the format used for the response is not JSON but XML and in the case of the webDAV API we have to define a cURL option to retrieve the field list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |