Skip to content

Commit

Permalink
roadweather fix calls.http wrong request format
Browse files Browse the repository at this point in the history
  • Loading branch information
clezag committed Nov 22, 2024
1 parent 86d48aa commit c00a11b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions data-collectors/roadweather-a22/calls.http
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

### Authorize
# @name login
@token = {{login.response.body.SubscribeResult.sessionId}}
POST {{host}}/token
Content-Type: application/json
User-Agent: NOI/A22RoadWeatherConnector
Expand All @@ -14,6 +13,8 @@ Accept: */*
"password": "{{$dotenv A22_PASSWORD}}"
}
}
###
@token = {{login.response.body.SubscribeResult.sessionId}}

### Get active events
POST {{host}}/meteo/anagrafica
Expand All @@ -22,9 +23,7 @@ User-Agent: NOI/A22RoadWeatherConnector
Accept: */*

{
"request": {
"sessionId": "{{token}}"
}
"sessionId": "{{token}}"
}

### Get historical events
Expand Down

0 comments on commit c00a11b

Please sign in to comment.