Skip to content

Commit 21d415f

Browse files
authored
[Release 3.0.0] Regenerate clients - commit e461ab2a316d5f9090d3e4bbf9cfb77922040f99 (#86)
1 parent 9a8412b commit 21d415f

File tree

146 files changed

+8967
-933
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+8967
-933
lines changed

.openapi-generator/FILES

+15-16
Original file line numberDiff line numberDiff line change
@@ -81,42 +81,42 @@ docs/Clone.md
8181
docs/CreateDevicesV2CertsPayload.md
8282
docs/CreateDevicesV2Payload.md
8383
docs/CreateLoraDevicesV1Payload.md
84-
docs/DashboardsV2Api.md
84+
docs/DashboardsV2API.md
8585
docs/Dashboardshare.md
8686
docs/Dashboardv2.md
87-
docs/DevicesV2Api.md
88-
docs/DevicesV2CertsApi.md
89-
docs/DevicesV2OtaApi.md
90-
docs/DevicesV2PassApi.md
91-
docs/DevicesV2TagsApi.md
87+
docs/DevicesV2API.md
88+
docs/DevicesV2CertsAPI.md
89+
docs/DevicesV2OtaAPI.md
90+
docs/DevicesV2PassAPI.md
91+
docs/DevicesV2TagsAPI.md
9292
docs/Devicev2.md
9393
docs/Devicev2Cert.md
9494
docs/Devicev2Otabinaryurl.md
9595
docs/Devicev2Otaurlpyalod.md
9696
docs/Devicev2Pass.md
9797
docs/HistoricDataRequest.md
98-
docs/LoraDevicesV1Api.md
99-
docs/LoraFreqPlanV1Api.md
98+
docs/LoraDevicesV1API.md
99+
docs/LoraFreqPlanV1API.md
100100
docs/ModelError.md
101-
docs/NetworkCredentialsV1Api.md
101+
docs/NetworkCredentialsV1API.md
102102
docs/Override.md
103-
docs/PropertiesV2Api.md
103+
docs/PropertiesV2API.md
104104
docs/PropertiesValue.md
105105
docs/PropertiesValues.md
106106
docs/Property.md
107-
docs/PropertyTypesV1Api.md
107+
docs/PropertyTypesV1API.md
108108
docs/PropertyValue.md
109-
docs/SeriesV2Api.md
109+
docs/SeriesV2API.md
110110
docs/Sharerequest.md
111111
docs/Tag.md
112112
docs/Template.md
113-
docs/TemplatesApi.md
113+
docs/TemplatesAPI.md
114114
docs/ThingClone.md
115115
docs/ThingCreate.md
116116
docs/ThingSketch.md
117117
docs/ThingUpdate.md
118-
docs/ThingsV2Api.md
119-
docs/ThingsV2TagsApi.md
118+
docs/ThingsV2API.md
119+
docs/ThingsV2TagsAPI.md
120120
docs/TimeseriesDataPoint.md
121121
docs/UpdateSketch.md
122122
docs/Widget.md
@@ -212,5 +212,4 @@ model_update_sketch.go
212212
model_widget.go
213213
model_widgetlink.go
214214
response.go
215-
test/api_property_types_v1_test.go
216215
utils.go

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.4.0
1+
7.9.0

README.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ import cc "golang.org/x/oauth2/clientcredentials"
1111
// We need to pass the additional "audience" var to request an access token
1212
additionalValues := url.Values{}
1313
additionalValues.Add("audience", "https://api2.arduino.cc/iot")
14-
// Set up OAuth2 configuration
14+
if organizationId != "" {
15+
additionalValues.Add("organization_id", organizationId) // Optionally, specify organization
16+
}
17+
// Set up OAuth2 configuration.
1518
config := cc.Config{
16-
ClientID: clientID,
17-
ClientSecret: clientSecret,
18-
TokenURL: "https://api2.arduino.cc/iot/v1/clients/token",
19+
ClientID: client,
20+
ClientSecret: secret,
21+
TokenURL: baseURL + "/iot/v1/clients/token",
1922
EndpointParams: additionalValues,
2023
}
2124
// Get the access token in exchange of client_id and client_secret
@@ -43,4 +46,10 @@ You can generate Arduino IoT Cloud Client Credentials in the `ARDUINO API` secti
4346

4447
### Step 3
4548

46-
![IoT Cloud Site](https://github.com/arduino/iot-client-js/blob/master/img/selection_3.png?raw=true)
49+
![IoT Cloud Site](https://github.com/arduino/iot-client-js/blob/master/img/selection_3.png?raw=true)
50+
51+
## Migration notes to client v3
52+
53+
Client has been re-generated following proper language definitions and using an updated openapi-generator version.
54+
Major change is about API naming convetion. Now, all API structures are all defined with uppercase API suffix.
55+
For example, 'DevicesV2Api' is now renamed as 'DevicesV2API'.

0 commit comments

Comments
 (0)