Buildship --> VoiceFlow API
Hello all. I am using flutterflow to create a chat and want to use buildship to create all api calls to VoiceFlow. I have the VoiceFlow api documentation but am struggling to actually create the right API calls. I am not fully understanding how to pass all the right information to VoiceFlow. Can Anyone offer some help on how to construct the API call?
Here is the example CURL code which is working but I need to "translate" this into a Buildship API call.
"CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://general-runtime.voiceflow.com/state/user/userID/interact?logs=off");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "Authorization: VF.DM.**");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{"action":{"type":"launch"},"config":{"tts":false,"stripSSML":true,"stopAll":true,"excludeTypes":["block","debug","flow"]}}");
CURLcode ret = curl_easy_perform(hnd);"
TIA
Here is the example CURL code which is working but I need to "translate" this into a Buildship API call.
"CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://general-runtime.voiceflow.com/state/user/userID/interact?logs=off");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "Authorization: VF.DM.**");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{"action":{"type":"launch"},"config":{"tts":false,"stripSSML":true,"stopAll":true,"excludeTypes":["block","debug","flow"]}}");
CURLcode ret = curl_easy_perform(hnd);"
TIA
