Change keyword list usage
You can choose the usage of your list either whitelist or as a blacklist
Change keyword list usage
POST https://api.imagemash.io/v1/account/changeKeywordListUsage
Headers
Name
Type
Description
apikey*
String
Your API Key
name*
String
Accepts whitelist or blacklist as value
// Empty Body{
msg: "error details"
details: "..."
} // Explanation of errorExample Codes
curl --location --request POST 'https://api.imagemash.io/v1/account/changeKeywordListUsage' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'name=whitelist'var client = new RestClient("https://api.imagemash.io/v1/account/changeKeywordListUsage");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "your_api_key");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("name", "whitelist");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);import java.io.*;
import okhttp3.*;
public class main {
public static void main(String []args) throws IOException{
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "name=whitelist");
Request request = new Request.Builder()
.url("https://api.imagemash.io/v1/account/changeKeywordListUsage")
.method("POST", body)
.addHeader("apikey", "your_api_key")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
Last updated