The endpoint will allow you to create a job applications
url | jobApplication |
---|
candidateId | String : The unique Id of the candidate |
---|---|
jobId | String : The unique Id of the job (null if spontaneous applications) |
candidateId | String : The unique Id of the candidate |
---|---|
jobId | String : The unique Id of the job (null if spontaneous applications) |
409 | This candidate already apply for this job |
---|
1 2 3 4 5 6 7 8 9 |
curl -X POST \ 'https://api.nextal.com/jobApplications?napikey=demo&ntenant=demo' \ -H 'accept: application/json, text/plain, */*' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json;charset=UTF-8' \ -d '{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<?php $request = new HttpRequest(); $request->setUrl('https://api.nextal.com/jobApplications'); $request->setMethod(HTTP_METH_POST); $request->setQueryData(array( 'napikey' => 'demo', 'ntenant' => 'demo' )); $request->setHeaders(array( 'cache-control' => 'no-cache', 'accept' => 'application/json, text/plain, */*', 'content-type' => 'application/json;charset=UTF-8' )); $request->setBody('{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }'); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import http.client conn = http.client.HTTPConnection("api,nextal,com") payload = '{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }' headers = { 'content-type': "application/json;charset=UTF-8", 'accept': "application/json, text/plain, */*", 'cache-control': "no-cache" } conn.request("POST", "jobApplications", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
require 'uri' require 'net/http' url = URI("https://api.nextal.com/jobApplications?napikey=demo&ntenant=demo") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Post.new(url) request["content-type"] = 'application/json;charset=UTF-8' request["accept"] = 'application/json, text/plain, */*' request["cache-control"] = 'no-cache' request.body = '{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }' response = http.request(request) puts response.read_body |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://api.nextal.com/jobApplications?napikey=demo&ntenant=demo" payload := strings.NewReader('{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }') req, _ := http.NewRequest("POST", url, payload) req.Header.Add("content-type", "application/json;charset=UTF-8") req.Header.Add("accept", "application/json, text/plain, */*") req.Header.Add("cache-control", "no-cache") req.Header.Add("Postman-Token", "f126d688-9dd2-4a42-af5f-f288e5c755b6") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
var request = require("request"); var options = { method: 'POST', url: 'https://api.nextal.com/jobApplications', qs: { napikey: 'demo', ntenant: 'demo' }, headers: { 'cache-control': 'no-cache', accept: 'application/json, text/plain, */*', 'content-type': 'application/json;charset=UTF-8' }, body: '{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); |
1 2 3 4 5 6 7 8 9 10 |
HttpResponse<String> response = Unirest.post("https://api.nextal.com/jobApplications?napikey=demo&ntenant=demo") .header("content-type", "application/json;charset=UTF-8") .header("accept", "application/json, text/plain, */*") .header("cache-control", "no-cache") .header("Postman-Token", "d302cb2a-2f14-4aa4-bbd8-f25bce6ee49a") .body('{ "candidateId":"5c73df6a2c17ca0b49e6650b", "jobId":"5c875c8b2c17ca56a9806c9f" }') .asString(); |