---
title: teststst
slug: single-connect-api-3-0-3/teststst
description: Learn how to send a GET request using the curl command with assigned headers in this code example. Enhance your understanding of making HTTP requests effortlessly.
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "KZz0BWr2X5jbzPuCCiPOW",
  "data": {
    "url": "",
    "method": "GET",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "",
    "examples": {
      "languages": [
        {
          "id": "46XUb8I_OY9O_SesseK1t",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url '' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "dYBoqkxiNvIV2UgDFH4sF",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "5fBPpF6AujMbiFuXeJEBo",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "ksvUWxTnasKygVs1LrvK-",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "46XUb8I_OY9O_SesseK1t"
    },
    "results": {
      "languages": [
        {
          "id": "baTDLhhmWEQKt140E0HPM",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "baTDLhhmWEQKt140E0HPM"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}