@@ -40,7 +40,7 @@ For more information about the API: [The Speakeasy Platform Documentation](/docs
4040
4141To add the SDK as a dependency to your project:
4242``` bash 
43- go get github.com/speakeasy-api/speakeasy-client-sdk-go
43+ go get github.com/speakeasy-api/speakeasy-client-sdk-go/v3 
4444``` 
4545<!--  End SDK Installation [installation] --> 
4646
@@ -54,17 +54,17 @@ package main
5454
5555import  (
5656	" context" 
57- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
57+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
5858	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
5959	" log" 
6060)
6161
6262func  main () {
6363	ctx  :=  context.Background ()
6464
65- 	s  :=  speakeasyclientsdkgo .New (
66- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
67- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
65+ 	s  :=  v3 .New (
66+ 		v3 .WithSecurity (shared.Security {
67+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
6868		}),
6969	)
7070
@@ -172,7 +172,6 @@ func main() {
172172
173173*  [ Create] ( docs/sdks/shorturls/README.md#create )  - Shorten a URL.
174174
175- 
176175### [ Subscriptions] ( docs/sdks/subscriptions/README.md )  
177176
178177*  [ ActivateSubscriptionNamespace] ( docs/sdks/subscriptions/README.md#activatesubscriptionnamespace )  - Activate an ignored namespace for a subscription
@@ -236,7 +235,7 @@ package main
236235import  (
237236	" context" 
238237	" errors" 
239- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
238+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
240239	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/sdkerrors" 
241240	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
242241	" log" 
@@ -245,9 +244,9 @@ import (
245244func  main () {
246245	ctx  :=  context.Background ()
247246
248- 	s  :=  speakeasyclientsdkgo .New (
249- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
250- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
247+ 	s  :=  v3 .New (
248+ 		v3 .WithSecurity (shared.Security {
249+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
251250		}),
252251	)
253252
@@ -291,18 +290,18 @@ package main
291290
292291import  (
293292	" context" 
294- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
293+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
295294	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
296295	" log" 
297296)
298297
299298func  main () {
300299	ctx  :=  context.Background ()
301300
302- 	s  :=  speakeasyclientsdkgo .New (
303- 		speakeasyclientsdkgo .WithServer (" prod" 
304- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
305- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
301+ 	s  :=  v3 .New (
302+ 		v3 .WithServer (" prod" 
303+ 		v3 .WithSecurity (shared.Security {
304+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
306305		}),
307306	)
308307
@@ -325,18 +324,18 @@ package main
325324
326325import  (
327326	" context" 
328- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
327+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
329328	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
330329	" log" 
331330)
332331
333332func  main () {
334333	ctx  :=  context.Background ()
335334
336- 	s  :=  speakeasyclientsdkgo .New (
337- 		speakeasyclientsdkgo .WithServerURL (" https://api.prod.speakeasy.com" 
338- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
339- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
335+ 	s  :=  v3 .New (
336+ 		v3 .WithServerURL (" https://api.prod.speakeasy.com" 
337+ 		v3 .WithSecurity (shared.Security {
338+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
340339		}),
341340	)
342341
@@ -371,12 +370,13 @@ The built-in `net/http` client satisfies this interface and a default client bas
371370import  (
372371	" net/http" 
373372	" time" 
374- 	" github.com/myorg/your-go-sdk" 
373+ 
374+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
375375)
376376
377377var  (
378378	httpClient = &http.Client {Timeout: 30  * time.Second }
379- 	sdkClient  = sdk .New (sdk .WithClient (httpClient))
379+ 	sdkClient  = v3 .New (v3 .WithClient (httpClient))
380380)
381381``` 
382382
@@ -404,17 +404,17 @@ package main
404404
405405import  (
406406	" context" 
407- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
407+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
408408	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
409409	" log" 
410410)
411411
412412func  main () {
413413	ctx  :=  context.Background ()
414414
415- 	s  :=  speakeasyclientsdkgo .New (
416- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
417- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
415+ 	s  :=  v3 .New (
416+ 		v3 .WithSecurity (shared.Security {
417+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
418418		}),
419419	)
420420
@@ -453,15 +453,17 @@ package main
453453
454454import  (
455455	" context" 
456- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
456+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
457457	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations" 
458458	" log" 
459459)
460460
461461func  main () {
462462	ctx  :=  context.Background ()
463463
464- 	s  :=  speakeasyclientsdkgo.New ()
464+ 	s  :=  v3.New (
465+ 		v3.WithWorkspaceID (" <id>" 
466+ 	)
465467
466468	res , err  :=  s.Auth .GetAccessToken (ctx, operations.GetAccessTokenRequest {
467469		WorkspaceID: " <id>" 
@@ -488,7 +490,7 @@ package main
488490
489491import  (
490492	" context" 
491- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
493+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
492494	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
493495	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry" 
494496	" log" 
@@ -498,9 +500,9 @@ import (
498500func  main () {
499501	ctx  :=  context.Background ()
500502
501- 	s  :=  speakeasyclientsdkgo .New (
502- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
503- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
503+ 	s  :=  v3 .New (
504+ 		v3 .WithSecurity (shared.Security {
505+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
504506		}),
505507	)
506508
@@ -531,7 +533,7 @@ package main
531533
532534import  (
533535	" context" 
534- 	speakeasyclientsdkgo  " github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
536+ 	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3" 
535537	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared" 
536538	" github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry" 
537539	" log" 
@@ -540,8 +542,8 @@ import (
540542func  main () {
541543	ctx  :=  context.Background ()
542544
543- 	s  :=  speakeasyclientsdkgo .New (
544- 		speakeasyclientsdkgo .WithRetryConfig (
545+ 	s  :=  v3 .New (
546+ 		v3 .WithRetryConfig (
545547			retry.Config {
546548				Strategy: " backoff" 
547549				Backoff: &retry.BackoffStrategy {
@@ -552,8 +554,8 @@ func main() {
552554				},
553555				RetryConnectionErrors: false ,
554556			}),
555- 		speakeasyclientsdkgo .WithSecurity (shared.Security {
556- 			APIKey: speakeasyclientsdkgo. String (" <YOUR_API_KEY_HERE>" 
557+ 		v3 .WithSecurity (shared.Security {
558+ 			APIKey: v3. Pointer (" <YOUR_API_KEY_HERE>" 
557559		}),
558560	)
559561
0 commit comments