# `NeedleApple.WeatherKitRestAPI`
[🔗](https://github.com/zlibex/needle_apple/blob/v0.1.1/lib/needle_apple/weather_kit_rest_api.ex#L1)

Utilities for [WeatherKit REST API](https://developer.apple.com/documentation/weatherkitrestapi).

# `build_auth_token!`

```elixir
@spec build_auth_token!(
  NeedleApple.Types.Developer.team_id(),
  NeedleApple.Types.Developer.key_id(),
  NeedleApple.Types.Developer.private_key(),
  NeedleApple.Types.Developer.service_id()
) :: String.t()
```

Builds a token to authorize HTTP requests.

After building it, use it in the `Authorization` header like this:

```text
Authorization: Bearer <JWT>
```

## More resources

  * [Request authentication for WeatherKit REST API](https://developer.apple.com/documentation/weatherkitrestapi/request_authentication_for_weatherkit_rest_api)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
