The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.34 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
Web API : what is the post key value ?
03-10-2016, 18:32
Post: #1
Web API : what is the post key value ?
Hello Simon

I am testing the web API. I have an issue, and have not been able to see where is the answer on your site; sorry if I just need to change glasses..

What is the value of the key when sending a POST ?

As an example : I have created a file named dsfTranscode.txt which contains the only line
prop stream.transcode=flac:wav24, dsf:wav24;176

This file is on my Synology, on the web server directory.

I want call the web API. So here is my script.
But what should I put instead of xxx ???

Many Thanks !

$.ajax({
type: "POST",
url: "http://192.168.73.22:9790/",
data: {xxx:"dsfTranscode.txt"},
dataType: "text",
success: function(retour) {}
}); // end ajax function
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Web API : what is the post key value ? - lyapounov - 03-10-2016 18:32

Forum Jump:


User(s) browsing this thread: 1 Guest(s)