remove unused
This commit is contained in:
1 parent
301dab1ca5
commit
ea1c3413a5
88 files changed
+29
-5766
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 97 KiB |
@@ -1,17 +0,0 @@
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
{{#body}}
|
||||
jsonObject.put("{{{key}}}", {{{value}}});
|
||||
{{/body}}
|
||||
MediaType mediaType = "application/json; charset=utf-8".toMediaType();
|
||||
RequestBody body = jsonObject.toString().toRequestBody(mediaType);
|
||||
Request request = new Request.Builder()
|
||||
.url("{{{url}}}")
|
||||
.{{{method}}}(body)
|
||||
{{#headers}}
|
||||
.addHeader("{{{key}}}", {{{value}}})
|
||||
{{/headers}}
|
||||
.build();
|
||||
|
||||
OkHttpClient client = new OkHttpClient();
|
||||
Response response = client.newCall(request).execute();
|
||||
System.out.print(response.body!!.string())
|
||||
@@ -1,18 +0,0 @@
|
||||
const options = {
|
||||
method: '{{{method}}}',
|
||||
headers: {
|
||||
{{#headers}}
|
||||
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
|
||||
{{/headers}}
|
||||
},
|
||||
body: JSON.stringify({
|
||||
{{#body}}
|
||||
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
|
||||
{{/body}}
|
||||
})
|
||||
};
|
||||
|
||||
fetch('{{{url}}}', options)
|
||||
.then(response => response.json())
|
||||
.then(response => console.log(response))
|
||||
.catch(err => console.error(err));
|
||||
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
require_once('vendor/autoload.php');
|
||||
|
||||
$client = new \GuzzleHttp\Client();
|
||||
|
||||
$response = $client->request('{{{method}}}', '{{{url}}}', [
|
||||
'body' => '{
|
||||
{{#body}}
|
||||
"{{{key}}}": {{{value}}}{{^last}},{{/last}}
|
||||
{{/body}}
|
||||
}',
|
||||
'headers' => [
|
||||
{{#headers}}
|
||||
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
|
||||
{{/headers}}
|
||||
],
|
||||
]);
|
||||
|
||||
echo $response->getBody();
|
||||
@@ -1,18 +0,0 @@
|
||||
import requests
|
||||
|
||||
url = '{{{url}}}'
|
||||
|
||||
headers = {
|
||||
{{#headers}}
|
||||
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
|
||||
{{/headers}}
|
||||
}
|
||||
|
||||
payload = {
|
||||
{{#body}}
|
||||
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
|
||||
{{/body}}
|
||||
}
|
||||
|
||||
response = requests.{{{method}}}(url, json=payload, headers=headers)
|
||||
print(response.text)
|
||||
Reference in new issue
Block a user