Skip to content

[Release 3.0.0] Regenerate clients - commit e461ab2a316d5f9090d3e4bbf9cfb77922040f99 #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -81,42 +81,42 @@ docs/Clone.md
docs/CreateDevicesV2CertsPayload.md
docs/CreateDevicesV2Payload.md
docs/CreateLoraDevicesV1Payload.md
docs/DashboardsV2Api.md
docs/DashboardsV2API.md
docs/Dashboardshare.md
docs/Dashboardv2.md
docs/DevicesV2Api.md
docs/DevicesV2CertsApi.md
docs/DevicesV2OtaApi.md
docs/DevicesV2PassApi.md
docs/DevicesV2TagsApi.md
docs/DevicesV2API.md
docs/DevicesV2CertsAPI.md
docs/DevicesV2OtaAPI.md
docs/DevicesV2PassAPI.md
docs/DevicesV2TagsAPI.md
docs/Devicev2.md
docs/Devicev2Cert.md
docs/Devicev2Otabinaryurl.md
docs/Devicev2Otaurlpyalod.md
docs/Devicev2Pass.md
docs/HistoricDataRequest.md
docs/LoraDevicesV1Api.md
docs/LoraFreqPlanV1Api.md
docs/LoraDevicesV1API.md
docs/LoraFreqPlanV1API.md
docs/ModelError.md
docs/NetworkCredentialsV1Api.md
docs/NetworkCredentialsV1API.md
docs/Override.md
docs/PropertiesV2Api.md
docs/PropertiesV2API.md
docs/PropertiesValue.md
docs/PropertiesValues.md
docs/Property.md
docs/PropertyTypesV1Api.md
docs/PropertyTypesV1API.md
docs/PropertyValue.md
docs/SeriesV2Api.md
docs/SeriesV2API.md
docs/Sharerequest.md
docs/Tag.md
docs/Template.md
docs/TemplatesApi.md
docs/TemplatesAPI.md
docs/ThingClone.md
docs/ThingCreate.md
docs/ThingSketch.md
docs/ThingUpdate.md
docs/ThingsV2Api.md
docs/ThingsV2TagsApi.md
docs/ThingsV2API.md
docs/ThingsV2TagsAPI.md
docs/TimeseriesDataPoint.md
docs/UpdateSketch.md
docs/Widget.md
Expand Down Expand Up @@ -212,5 +212,4 @@ model_update_sketch.go
model_widget.go
model_widgetlink.go
response.go
test/api_property_types_v1_test.go
utils.go
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.9.0
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ import cc "golang.org/x/oauth2/clientcredentials"
// We need to pass the additional "audience" var to request an access token
additionalValues := url.Values{}
additionalValues.Add("audience", "https://api2.arduino.cc/iot")
// Set up OAuth2 configuration
if organizationId != "" {
additionalValues.Add("organization_id", organizationId) // Optionally, specify organization
}
// Set up OAuth2 configuration.
config := cc.Config{
ClientID: clientID,
ClientSecret: clientSecret,
TokenURL: "https://api2.arduino.cc/iot/v1/clients/token",
ClientID: client,
ClientSecret: secret,
TokenURL: baseURL + "/iot/v1/clients/token",
EndpointParams: additionalValues,
}
// Get the access token in exchange of client_id and client_secret
Expand Down Expand Up @@ -43,4 +46,10 @@ You can generate Arduino IoT Cloud Client Credentials in the `ARDUINO API` secti

### Step 3

![IoT Cloud Site](https://github.com/arduino/iot-client-js/blob/master/img/selection_3.png?raw=true)
![IoT Cloud Site](https://github.com/arduino/iot-client-js/blob/master/img/selection_3.png?raw=true)

## Migration notes to client v3

Client has been re-generated following proper language definitions and using an updated openapi-generator version.
Major change is about API naming convetion. Now, all API structures are all defined with uppercase API suffix.
For example, 'DevicesV2Api' is now renamed as 'DevicesV2API'.
Loading
Loading