Skip to content

Commit

Permalink
ci: regenerated with Speakeasy CLI v1.440.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 16, 2024
1 parent a593be3 commit f846e18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.440.0
speakeasyVersion: 1.440.1
sources:
merge-code-samples-into-spec:
sourceNamespace: merge-code-samples-into-spec
sourceRevisionDigest: sha256:7c3e3f6df8c9efcc8d1e1b8c2dcd626964ce5e753f03d5397c0d4c4cf0b0efc0
sourceBlobDigest: sha256:90083248a280936db596819da3f562aa63e24663f9253506c7f369aebaf08c2c
sourceRevisionDigest: sha256:724243ba73d4f652ed5f4786e2768d08180f9f81fb9226d99c4e52630cdf1c84
sourceBlobDigest: sha256:1f8e46d31b88cb468ed0baa8d05c792c9a7f7618518b3a3303abab93725c0250
tags:
- latest
- speakeasy-sdk-regen-1731630184
- speakeasy-sdk-regen-1731716539
targets: {}
workflow:
workflowVersion: 1.0.0
Expand Down
8 changes: 4 additions & 4 deletions openapi-with-code-samples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2488,9 +2488,9 @@ paths:
get:
operationId: "getCustomers"
x-speakeasy-name-override: "list"
summary: "Get a list of customers"
summary: "Retrieve a list of customers"
x-codeSamples: [{"lang": "typescript", "label": "getCustomers", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.customers.list();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "getCustomers", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Customers.List(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "getCustomers", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n \nres = s.customers.list()\n\nif ! res.response_bodies.nil?\n # handle response\nend"}, {"lang": "php", "label": "getCustomers", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n\n\n$response = $sdk->customers->list(\n\n);\n\nif ($response->responseBodies !== null) {\n // handle response\n}"}, {lang: python, label: getCustomers, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.customers.list()\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/customers\")\n .get()\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}]
description: "Get a list of customers for the authenticated workspace."
description: "Retrieve a list of customers for the authenticated workspace."
tags:
- "Customers"
security:
Expand Down Expand Up @@ -2620,9 +2620,9 @@ paths:
get:
operationId: "getCustomer"
x-speakeasy-name-override: "get"
summary: "Get a customer"
summary: "Retrieve a customer"
x-codeSamples: [{"lang": "typescript", "label": "getCustomer", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.customers.get({\n id: \"<id>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "getCustomer", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Customers.Get(ctx, operations.GetCustomerRequest{\n ID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "getCustomer", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::GetCustomerRequest.new(\n id: \"<id>\",\n)\n \nres = s.customers.get(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "getCustomer", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n\n\n$response = $sdk->customers->get(\n id: '<id>'\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: getCustomer, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.customers.get(request={\n \"id\": \"<id>\",\n})\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/customers/id\")\n .get()\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}]
description: "Get a customer by ID for the authenticated workspace."
description: "Retrieve a customer by ID for the authenticated workspace."
tags:
- "Customers"
security:
Expand Down

0 comments on commit f846e18

Please sign in to comment.