### Go example for application workspace Source: https://docs.rxresu.me/api-reference/career/get-an-application-workspace Go example using net/http to GET the workspace endpoint. Sets the x-api-key header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/career/workspace/{applicationId}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go HTTP client to get resume by ID Source: https://docs.rxresu.me/api-reference/resumes/get-resume-by-id Go example using net/http to GET a resume by ID. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/resumes/{id}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example Source: https://docs.rxresu.me/api-reference/applications/get-application-by-id Uses net/http to send a GET request with the API key header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/applications/{id}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for resume statistics Source: https://docs.rxresu.me/api-reference/resume-statistics/get-resume-statistics Uses the net/http package to send a GET request with the x-api-key header. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/resumes/{id}/statistics" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Ruby example for resume statistics Source: https://docs.rxresu.me/api-reference/resume-statistics/get-resume-statistics Uses Net::HTTP to send a GET request with the x-api-key header. Prints the response body. ```ruby require 'uri' require 'net/http' url = URI("https://rxresu.me/api/openapi/resumes/{id}/statistics") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` -------------------------------- ### GET /resumes - cURL and client examples Source: https://docs.rxresu.me/api-reference/resumes/list-all-resumes Tabbed code examples for the GET /resumes endpoint, showing cURL, Python, JavaScript, PHP, Go, Java (Unirest), and Ruby implementations. Note that the cURL example omits the sort parameter used in the other languages. ```shell curl "https://rxresu.me/api/openapi/resumes" --header "x-api-key: " ``` ```python import requests url = "https://rxresu.me/api/openapi/resumes?sort=lastUpdatedAt" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.text) ``` ```javascript const options = {method: 'GET', headers: {'x-api-key': ''}}; fetch('https://rxresu.me/api/openapi/resumes?sort=lastUpdatedAt', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` ```php "https://rxresu.me/api/openapi/resumes?sort=lastUpdatedAt", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "x-api-key: " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/resumes?sort=lastUpdatedAt" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` ```java HttpResponse response = Unirest.get("https://rxresu.me/api/openapi/resumes?sort=lastUpdatedAt") .header("x-api-key", "") .asString(); ``` ```ruby require 'uri' require 'net/http' url = URI("https://rxresu.me/api/openapi/resumes?sort=lastUpdatedAt") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` -------------------------------- ### Go example for listing resume versions Source: https://docs.rxresu.me/api-reference/resumes/list-resume-version-history Uses the net/http package to send a GET request with the x-api-key header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/resumes/{resumeId}/versions" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Dates object example Source: https://docs.rxresu.me/guides/using-the-patch-api An example `dates` object showing a start date, a null end date, and `present` true. ```json "dates": { "start": "2022-03", "end": null, "present": true } ``` -------------------------------- ### Java Unirest to get resume by ID Source: https://docs.rxresu.me/api-reference/resumes/get-resume-by-id Java example using Unirest to GET a resume by ID. Returns the response as a string. ```java HttpResponse response = Unirest.get("https://rxresu.me/api/openapi/resumes/{id}") .header("x-api-key", "") .asString(); ``` -------------------------------- ### Install skill with Gemini CLI Source: https://docs.rxresu.me/guides/using-agent-skills Installs the resume-tailor skill directly from the Reactive Resume repository using the Gemini CLI. Requires the repository URL and the path to the skill folder. ```bash gemini skills install https://github.com/reactive-resume/reactive-resume.git --path plugins/reactive-resume/skills/resume-tailor ``` -------------------------------- ### Java Unirest request to GET /statistics Source: https://docs.rxresu.me/api-reference/platform-statistics/get-user-and-resume-totals-with-their-cache-timestamp Java example using Unirest to call the statistics endpoint and get the response as a string. ```java HttpResponse response = Unirest.get("https://rxresu.me/api/openapi/statistics") .asString(); ``` -------------------------------- ### Ruby example for listing resume versions Source: https://docs.rxresu.me/api-reference/resumes/list-resume-version-history Uses Net::HTTP to send a GET request with the x-api-key header and prints the response body. ```ruby require 'uri' require 'net/http' url = URI("https://rxresu.me/api/openapi/resumes/{resumeId}/versions") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` -------------------------------- ### PHP cURL to get resume by ID Source: https://docs.rxresu.me/api-reference/resumes/get-resume-by-id PHP example using cURL to GET a resume by ID. Prints the response or a cURL error. ```php "https://rxresu.me/api/openapi/resumes/{id}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "x-api-key: " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` -------------------------------- ### Start the app with pnpm dev Source: https://docs.rxresu.me/contributing/development Starts the development environment. The server applies database migrations on startup, so a fresh database is ready as soon as the app loads at http://localhost:3000. ```bash pnpm dev ``` -------------------------------- ### Go net/http example for search-postings Source: https://docs.rxresu.me/api-reference/applications/search-job-postings Go example using net/http to POST a query to the search-postings endpoint and print the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/applications/ai/search-postings" payload := strings.NewReader("{\n \"query\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### JavaScript fetch to get resume by ID Source: https://docs.rxresu.me/api-reference/resumes/get-resume-by-id JavaScript example using fetch to GET a resume by ID. Logs the response or error to the console. ```javascript const options = {method: 'GET', headers: {'x-api-key': ''}}; fetch('https://rxresu.me/api/openapi/resumes/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` -------------------------------- ### Install plugin with Codex Source: https://docs.rxresu.me/guides/using-agent-skills Installs the Reactive Resume plugin for Codex, which installs all eight skills and connects the MCP server. Start a new session afterwards. You can also browse and toggle plugins with /plugins. ```bash codex plugin marketplace add reactive-resume/reactive-resume codex plugin add reactive-resume@reactive-resume codex mcp login reactive-resume ``` -------------------------------- ### Import resume with Go (net/http) Source: https://docs.rxresu.me/api-reference/resumes/import-a-resume Go example using net/http to POST the same resume JSON payload to the import endpoint. Requires an API key in the x-api-key header. Prints the HTTP response and response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/resumes/import" payload := strings.NewReader("{\n \"data\": {\n \"picture\": {\n \"hidden\": true,\n \"url\": \"\",\n \"size\": 272,\n \"rotation\": 180,\n \"aspectRatio\": 1.5,\n \"borderRadius\": 50,\n \"borderColor\": \"\",\n \"borderWidth\": 1,\n \"shadowColor\": \"\",\n \"shadowWidth\": 1,\n \"fit\": \"cover\"\n },\n \"basics\": {\n \"name\": \"\",\n \"headline\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"location\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\"\n },\n \"customFields\": [\n {\n \"id\": \"\",\n \"icon\": \"\",\n \"text\": \"\",\n \"link\": \"\"\n }\n ]\n },\n \"summary\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"content\": \"\",\n \"showHeading\": true\n },\n \"sections\": {\n \"profiles\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"icon\": \"\",\n \"iconColor\": \"\",\n \"network\": \"\",\n \"username\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"experience\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"title\": \"\",\n \"company\": \"\",\n \"location\": \"\",\n \"dateStart\": \"\",\n \"dateEnd\": \"\",\n \"summary\": \"\",\n \"highlights\": [\n \"\"\n ],\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"education\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"institution\": \"\",\n \"studyType\": \"\",\n \"area\": \"\",\n \"score\": \"\",\n \"dateStart\": \"\",\n \"dateEnd\": \"\",\n \"summary\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"skills\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"name\": \"\",\n \"description\": \"\",\n \"level\": \"\",\n \"keywords\": [\n \"\"\n ]\n }\n ],\n \"showHeading\": true\n },\n \"projects\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"title\": \"\",\n \"description\": \"\",\n \"summary\": \"\",\n \"dateStart\": \"\",\n \"dateEnd\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n },\n \"keywords\": [\n \"\"\n ]\n }\n ],\n \"showHeading\": true\n },\n \"awards\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"title\": \"\",\n \"awarder\": \"\",\n \"date\": \"\",\n \"summary\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"certificates\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"name\": \"\",\n \"issuer\": \"\",\n \"date\": \"\",\n \"summary\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"volunteering\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"organization\": \"\",\n \"position\": \"\",\n \"url\": \"\",\n \"dateStart\": \"\",\n \"dateEnd\": \"\",\n \"summary\": \"\",\n \"highlights\": [\n \"\"\n ]\n }\n ],\n \"showHeading\": true\n },\n \"interests\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"name\": \"\",\n \"keywords\": [\n \"\"\n ]\n }\n ],\n \"showHeading\": true\n },\n \"languages\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"name\": \"\",\n \"description\": \"\",\n \"level\": \"\"\n }\n ],\n \"showHeading\": true\n },\n \"publications\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"name\": \"\",\n \"publisher\": \"\",\n \"date\": \"\",\n \"summary\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"references\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"name\": \"\",\n \"description\": \"\",\n \"summary\": \"\",\n \"website\": {\n \"url\": \"\",\n \"label\": \"\",\n \"inlineLink\": false\n }\n }\n ],\n \"showHeading\": true\n },\n \"custom\": {\n \"title\": \"\",\n \"icon\": \"\",\n \"columns\": 1,\n \"hidden\": true,\n \"keepTogether\": false,\n \"startOnNewPage\": false,\n \"items\": [\n {\n \"id\": \"\",\n \"hidden\": true,\n \"icon\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n }\n ],\n \"showHeading\": true\n }\n },\n \"settings\": {\n \"layout\": {\n \"columns\": 1,\n \"hideIcons\": false,\n \"hideSectionIcons\": true\n },\n \"design\": {\n \"level\": {\n \"icon\": \"\"\n },\n \"colors\": {\n \"primary\": \"\",\n \"text\": \"\",\n \"background\": \"\"\n }\n },\n \"typography\": {\n \"body\": {\n \"fontFamily\": \"\",\n \"fontWeights\": [\n \"400\"\n ],\n \"fontSize\": 11,\n \"lineHeight\": 1.5\n },\n \"heading\": {\n \"fontFamily\": \"\",\n \"fontWeights\": [\n \"400\"\n ],\n \"fontSize\": 11,\n \"lineHeight\": 1.5\n },\n \"hyphenation\": true\n },\n \"notes\": \"\",\n \"styleRules\": [\n \"\"\n ],\n \"check\": {\n \"ignored\": [\n \n ],\n \"hiddenTerms\": [\n \n ]\n }\n }\n }\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Ruby Net::HTTP to get resume by ID Source: https://docs.rxresu.me/api-reference/resumes/get-resume-by-id Ruby example using Net::HTTP to GET a resume by ID. Prints the response body. ```ruby require 'uri' require 'net/http' url = URI("https://rxresu.me/api/openapi/resumes/{id}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` -------------------------------- ### Go: Import resume file Source: https://docs.rxresu.me/api-reference/resumes/import-a-pdf-resume-json-or-linkedin-archive Uses net/http to send a POST request with a raw multipart body. Sets the x-api-key and Content-Type headers, then prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/resumes/file-imports" payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "multipart/form-data; boundary=---011000010111000001101001") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for copying a resume Source: https://docs.rxresu.me/api-reference/documents/copy-a-resume-for-a-job-1 Uses net/http to POST a JSON payload with resumeId, applicationId, and name. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/documents/copies" payload := strings.NewReader("{\n \"resumeId\": \"\",\n \"applicationId\": \"\",\n \"name\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### JavaScript fetch example for application workspace Source: https://docs.rxresu.me/api-reference/career/get-an-application-workspace JavaScript example using fetch to GET the workspace endpoint. Handles the response as JSON and logs it to the console. ```javascript const options = {method: 'GET', headers: {'x-api-key': ''}}; fetch('https://rxresu.me/api/openapi/career/workspace/{applicationId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` -------------------------------- ### Go example to log a note Source: https://docs.rxresu.me/api-reference/applications/log-a-note-on-the-timeline Uses net/http to POST a note with text and optional date. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/applications/{id}/notes" payload := strings.NewReader("{\n \"text\": \"\",\n \"date\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Python requests to get resume by ID Source: https://docs.rxresu.me/api-reference/resumes/get-resume-by-id Python example using the requests library to GET a resume by ID. Requires the requests package and an API key. ```python import requests url = "https://rxresu.me/api/openapi/resumes/{id}" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.text) ``` -------------------------------- ### Go example for autofill Source: https://docs.rxresu.me/api-reference/applications/post-applicationsaiautofill Uses the net/http package to POST a job description to the autofill endpoint. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/applications/ai/autofill" payload := strings.NewReader("{\n \"jobDescription\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Get Cover Letter Version with Java Unirest Source: https://docs.rxresu.me/api-reference/cover-letters/get-a-cover-letter-version Java example using Unirest to send a GET request with the x-api-key header and retrieve the response as a string. ```java HttpResponse response = Unirest.get("https://rxresu.me/api/openapi/cover-letters/{id}/versions/{versionId}") .header("x-api-key", "") .asString(); ``` -------------------------------- ### Get Cover Letter Version with Go Source: https://docs.rxresu.me/api-reference/cover-letters/get-a-cover-letter-version Go example using the standard net/http package to send a GET request with the x-api-key header)Skip this block? ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/cover-letters/{id}/versions/{versionId}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Create project directory Source: https://docs.rxresu.me/self-hosting/docker Initialize a new directory for the Reactive Resume instance. ```bash mkdir reactive-resume && cd reactive-resume ``` -------------------------------- ### Go example for autofills endpoint Source: https://docs.rxresu.me/api-reference/applications/post-applicationsaiautofills Uses net/http to POST a jobDescription. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/applications/ai/autofills" payload := strings.NewReader("{\n \"jobDescription\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Python requests example for application workspace Source: https://docs.rxresu.me/api-reference/career/get-an-application-workspace Python example using the requests library to GET the workspace endpoint. Requires the requests package and an API key. ```python import requests url = "https://rxresu.me/api/openapi/career/workspace/{applicationId}" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.text) ``` -------------------------------- ### Go example Source: https://docs.rxresu.me/api-reference/career/generate-ai-work-for-an-application Uses net/http to send the POST request with the same payload and headers. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/career/generate" payload := strings.NewReader("{\n \"applicationId\": \"\",\n \"task\": {\n \"task\": \"fit\"\n },\n \"locale\": \"en-US\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### PHP cURL request to GET /statistics Source: https://docs.rxresu.me/api-reference/platform-statistics/get-user-and-resume-totals-with-their-cache-timestamp PHP example using cURL to call the statistics endpoint. It sets up a GET request and prints the response or an error message. ```php "https://rxresu.me/api/openapi/statistics", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` -------------------------------- ### Go example for copy-for-job Source: https://docs.rxresu.me/api-reference/documents/copy-a-resume-for-a-job Uses net/http to send a POST request with a JSON string body. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rxresu.me/api/openapi/documents/copy-for-job" payload := strings.NewReader("{\n \"resumeId\": \"\",\n \"applicationId\": \"\",\n \"name\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ```