> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.strava.core.GetLoggedInAthlete

- Component: `appmixer.strava.core.GetLoggedInAthlete`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.strava 1.1.4](https://connectors.appmixer.com/connector/appmixer.strava/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.strava/1.1.4/component/appmixer.strava.core.GetLoggedInAthlete>

Get the currently authenticated athlete profile information.

## Input ports

### Port `in`

_No fields defined for this port._

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Athlete ID (`id`) | number | - |
| Username (`username`) | string | - |
| Resource State (`resource_state`) | number | - |
| Firstname (`firstname`) | string | - |
| Lastname (`lastname`) | string | - |
| City (`city`) | string | - |
| State (`state`) | string | - |
| Country (`country`) | string | - |
| Sex (`sex`) | string | - |
| Premium (`premium`) | boolean | - |
| Created At (`created_at`) | string | - |
| Updated At (`updated_at`) | string | - |
| Badge Type Id (`badge_type_id`) | number | - |
| Profile Medium (`profile_medium`) | string | - |
| Profile (`profile`) | string | - |
| Friend (`friend`) | null | - |
| Follower (`follower`) | null | - |
| Follower Count (`follower_count`) | number | - |
| Friend Count (`friend_count`) | number | - |
| Mutual Friend Count (`mutual_friend_count`) | number | - |
| Athlete Type (`athlete_type`) | number | - |
| Date Preference (`date_preference`) | string | - |
| Measurement Preference (`measurement_preference`) | string | - |
| Clubs (`clubs`) | array | - |
| Ftp (`ftp`) | null | - |
| Weight (`weight`) | number | - |
| Bikes (`bikes`) | array | - |
| Shoes (`shoes`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.strava.core.GetLoggedInAthlete",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Get the currently authenticated athlete profile information.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:strava"
  },
  "quota": {
    "manager": "appmixer:strava",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object"
      },
      "inspector": {
        "inputs": {}
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Athlete ID",
          "value": "id",
          "schema": {
            "type": "number",
            "example": 12345678
          }
        },
        {
          "label": "Username",
          "value": "username",
          "schema": {
            "type": "string",
            "example": "jdoe_runner"
          }
        },
        {
          "label": "Resource State",
          "value": "resource_state",
          "schema": {
            "type": "number",
            "example": 3
          }
        },
        {
          "label": "Firstname",
          "value": "firstname",
          "schema": {
            "type": "string",
            "example": "Jane"
          }
        },
        {
          "label": "Lastname",
          "value": "lastname",
          "schema": {
            "type": "string",
            "example": "Doe"
          }
        },
        {
          "label": "City",
          "value": "city",
          "schema": {
            "type": "string",
            "example": "San Francisco"
          }
        },
        {
          "label": "State",
          "value": "state",
          "schema": {
            "type": "string",
            "example": "California"
          }
        },
        {
          "label": "Country",
          "value": "country",
          "schema": {
            "type": "string",
            "example": "United States"
          }
        },
        {
          "label": "Sex",
          "value": "sex",
          "schema": {
            "type": "string",
            "example": "F"
          }
        },
        {
          "label": "Premium",
          "value": "premium",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Created At",
          "value": "created_at",
          "schema": {
            "type": "string",
            "example": "2019-03-15T10:22:04Z"
          }
        },
        {
          "label": "Updated At",
          "value": "updated_at",
          "schema": {
            "type": "string",
            "example": "2024-07-10T08:15:30Z"
          }
        },
        {
          "label": "Badge Type Id",
          "value": "badge_type_id",
          "schema": {
            "type": "number",
            "example": 1
          }
        },
        {
          "label": "Profile Medium",
          "value": "profile_medium",
          "schema": {
            "type": "string",
            "example": "https://dgalywyr863hv.cloudfront.net/pictures/athletes/12345678/medium.jpg"
          }
        },
        {
          "label": "Profile",
          "value": "profile",
          "schema": {
            "type": "string",
            "example": "https://dgalywyr863hv.cloudfront.net/pictures/athletes/12345678/large.jpg"
          }
        },
        {
          "label": "Friend",
          "value": "friend",
          "schema": {
            "type": "null",
            "example": null
          }
        },
        {
          "label": "Follower",
          "value": "follower",
          "schema": {
            "type": "null",
            "example": null
          }
        },
        {
          "label": "Follower Count",
          "value": "follower_count",
          "schema": {
            "type": "number",
            "example": 47
          }
        },
        {
          "label": "Friend Count",
          "value": "friend_count",
          "schema": {
            "type": "number",
            "example": 52
          }
        },
        {
          "label": "Mutual Friend Count",
          "value": "mutual_friend_count",
          "schema": {
            "type": "number",
            "example": 0
          }
        },
        {
          "label": "Athlete Type",
          "value": "athlete_type",
          "schema": {
            "type": "number",
            "example": 0
          }
        },
        {
          "label": "Date Preference",
          "value": "date_preference",
          "schema": {
            "type": "string",
            "example": "%m/%d/%Y"
          }
        },
        {
          "label": "Measurement Preference",
          "value": "measurement_preference",
          "schema": {
            "type": "string",
            "example": "feet"
          }
        },
        {
          "label": "Clubs",
          "value": "clubs",
          "schema": {
            "type": "array",
            "example": [],
            "items": {}
          }
        },
        {
          "label": "Ftp",
          "value": "ftp",
          "schema": {
            "type": "null",
            "example": null
          }
        },
        {
          "label": "Weight",
          "value": "weight",
          "schema": {
            "type": "number",
            "example": 68.5
          }
        },
        {
          "label": "Bikes",
          "value": "bikes",
          "schema": {
            "type": "array",
            "example": [
              {
                "id": "b12345678",
                "primary": true,
                "name": "Canyon Aeroad CF SLX",
                "resource_state": 2,
                "distance": 8500000
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "title": "Bikes.Id"
                },
                "primary": {
                  "type": "boolean",
                  "title": "Bikes.Primary"
                },
                "name": {
                  "type": "string",
                  "title": "Bikes.Name"
                },
                "resource_state": {
                  "type": "number",
                  "title": "Bikes.Resource State"
                },
                "distance": {
                  "type": "number",
                  "title": "Bikes.Distance"
                }
              }
            }
          }
        },
        {
          "label": "Shoes",
          "value": "shoes",
          "schema": {
            "type": "array",
            "example": [
              {
                "id": "g12345678",
                "primary": true,
                "name": "Nike Pegasus 40",
                "resource_state": 2,
                "distance": 523412
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "title": "Shoes.Id"
                },
                "primary": {
                  "type": "boolean",
                  "title": "Shoes.Primary"
                },
                "name": {
                  "type": "string",
                  "title": "Shoes.Name"
                },
                "resource_state": {
                  "type": "number",
                  "title": "Shoes.Resource State"
                },
                "distance": {
                  "type": "number",
                  "title": "Shoes.Distance"
                }
              }
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
