Foxpro / MongoDB Atlas / Get One Team by ID
        
        Back to Collection Items
        LOCAL loHttp
LOCAL lnSuccess
LOCAL loSbResponseBody
* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
loHttp = CreateObject('Chilkat.Http')
loHttp.DigestAuth = 1
loHttp.Login = "username"
loHttp.Password = "password"
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
lnSuccess = loHttp.QuickGetSb("https://domain.com/api/atlas/{{version}}/orgs/{{ORG-ID}}/teams/{{TEAM-ID}}",loSbResponseBody)
IF (lnSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loSbResponseBody
    CANCEL
ENDIF
? "Response status code = " + STR(loHttp.LastStatus)
? loSbResponseBody.GetAsString()
RELEASE loHttp
RELEASE loSbResponseBody
        Curl Command
        curl -X GET
	--digest -u 'username:password'
https://domain.com/api/atlas/{{version}}/orgs/{{ORG-ID}}/teams/{{TEAM-ID}}
        Postman Collection Item JSON
        {
  "name": "Get One Team by ID",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{base_url}}/api/atlas/{{version}}/orgs/{{ORG-ID}}/teams/{{TEAM-ID}}",
      "host": [
        "{{base_url}}"
      ],
      "path": [
        "api",
        "atlas",
        "{{version}}",
        "orgs",
        "{{ORG-ID}}",
        "teams",
        "{{TEAM-ID}}"
      ]
    },
    "description": "https://docs.atlas.mongodb.com/reference/api/teams-get-one-by-id/"
  },
  "response": [
  ]
}