addNewSystemFile()
Pixelsilk API function to create a system file--requires the advanced-admin-access permission
Parameters:
filename: the name of the new system file
Output:
The function addNewSystemFile returns void.
C# Example:
string filename = "newFileName";
AddNewSystemFile(filename);
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/addNewSystemFile HTTP/1.1
HOST: www.example.com
Content-Length: 97
Content-Type: application/x-www-form-urlencoded
Cookie: auth=4042720A3E9E...22BE9CA64638
Request Data:
Unencoded Data:
json={
"filename":"example.txt"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=
Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d
Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=31FC3500FC5B...2681BEEEA7A; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2
Response Data:
{}
JavaScript Example:
Method Call:
pixelsilk2.addNewSystemFile(input, callback);
Input Object:
{
filename:"SystemFile.txt"
}
Returned Data:
{}
Back to Files »