View Source Apple.WeatherKitRestAPI (apple v0.5.0)
Utilities for WeatherKit REST API.
Summary
Functions
Builds a token to authorize HTTP requests.
Functions
@spec build_auth_token!( Apple.Types.Developer.team_id(), Apple.Types.Developer.key_id(), Apple.Types.Developer.private_key(), Apple.Types.Developer.service_id() ) :: String.t()
Builds a token to authorize HTTP requests.
After building it, use it in the Authorization
header like this:
Authorization: Bearer <JWT>