Skip to content

Commit

Permalink
Merge pull request #33 from dubinc/speakeasy-sdk-regen-1727378512
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.6.6
  • Loading branch information
devkiran authored Sep 27, 2024
2 parents 46773ef + 0fc2068 commit 71ae82a
Show file tree
Hide file tree
Showing 18 changed files with 226 additions and 247 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96
management:
docChecksum: b6e0f68b0350f243f5aab5565767940a
docVersion: 0.0.1
speakeasyVersion: 1.402.14
generationVersion: 2.422.22
releaseVersion: 0.6.5
configChecksum: 36a646b390829bf5609c1650cbfe6dc7
speakeasyVersion: 1.403.3
generationVersion: 2.424.0
releaseVersion: 0.6.6
configChecksum: b87c0196f770c36646da5e05c86328b0
repoURL: https://github.com/dubinc/dub-php.git
installationURL: https://github.com/dubinc/dub-php
published: true
features:
php:
core: 3.4.5
core: 3.4.7
deprecations: 2.81.1
errors: 0.1.2
examples: 2.81.3
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
php:
version: 0.6.5
version: 0.6.6
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.402.14
speakeasyVersion: 1.403.3
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:4b542fd182159109e2384aecb4567bef603db55d399844004aa9ab4ebc21dcbb
sourceBlobDigest: sha256:7a16a8f470a59e7c83a19c6827a2bbad83dbb8402f687a1b3a5486b5d4f137b9
sourceRevisionDigest: sha256:b9e250813759983008c55439db8fc0c91da3af5a4615ad765f043f4ecfe1420b
sourceBlobDigest: sha256:2592d77c93d3b8cc433a92436afaffa9e860f35c87ea2a84818c607be2f58756
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:4b542fd182159109e2384aecb4567bef603db55d399844004aa9ab4ebc21dcbb
sourceBlobDigest: sha256:7a16a8f470a59e7c83a19c6827a2bbad83dbb8402f687a1b3a5486b5d4f137b9
sourceRevisionDigest: sha256:b9e250813759983008c55439db8fc0c91da3af5a4615ad765f043f4ecfe1420b
sourceBlobDigest: sha256:2592d77c93d3b8cc433a92436afaffa9e860f35c87ea2a84818c607be2f58756
codeSamplesNamespace: code-samples-php-my-first-target
codeSamplesRevisionDigest: sha256:fbbb6f7bd26a81988522c82d0e28fd21ad3ad0ebef12e1e14848f51563ce3945
codeSamplesRevisionDigest: sha256:5b6b121af744f8c8692d04e8a25126f53a7bdf6f956e33051729c7ffc654d35c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
38 changes: 17 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,11 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use Dub;
use Dub\Models\Components;
use Dub\Models\Operations;

$security = new Components\Security(
token: "DUB_API_KEY",
);
$security = 'DUB_API_KEY';

$sdk = Dub\Dub::builder()->setSecurity($security)->build();

try {
$request = new Operations\CreateLinkRequestBody(
url: 'https://google.com',
Expand All @@ -61,7 +57,9 @@ try {
],
externalId: '123456',
);
$response = $sdk->links->create($request);
$response = $sdk.links->create(
request: $request
);

if ($response->linkSchema !== null) {
// handle response
Expand All @@ -79,15 +77,11 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use Dub;
use Dub\Models\Components;
use Dub\Models\Operations;

$security = new Components\Security(
token: "DUB_API_KEY",
);
$security = 'DUB_API_KEY';

$sdk = Dub\Dub::builder()->setSecurity($security)->build();

try {
$request = new Operations\UpsertLinkRequestBody(
url: 'https://google.com',
Expand All @@ -96,7 +90,9 @@ try {
],
externalId: '123456',
);
$response = $sdk->links->upsert($request);
$response = $sdk.links->upsert(
request: $request
);

if ($response->linkSchema !== null) {
// handle response
Expand All @@ -113,23 +109,23 @@ try {
<details open>
<summary>Available methods</summary>

### [Analytics](docs/sdks/analytics/README.md)
### [analytics](docs/sdks/analytics/README.md)

* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.

### [Domains](docs/sdks/domains/README.md)
### [domains](docs/sdks/domains/README.md)

* [create](docs/sdks/domains/README.md#create) - Create a domain
* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains
* [update](docs/sdks/domains/README.md#update) - Update a domain
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain


### [Events](docs/sdks/events/README.md)
### [events](docs/sdks/events/README.md)

* [list](docs/sdks/events/README.md#list) - Retrieve a list of events

### [Links](docs/sdks/links/README.md)
### [links](docs/sdks/links/README.md)

* [create](docs/sdks/links/README.md#create) - Create a new link
* [list](docs/sdks/links/README.md#list) - Retrieve a list of links
Expand All @@ -142,28 +138,28 @@ try {
* [deleteMany](docs/sdks/links/README.md#deletemany) - Bulk delete links
* [upsert](docs/sdks/links/README.md#upsert) - Upsert a link

### [Metatags](docs/sdks/metatags/README.md)
### [metatags](docs/sdks/metatags/README.md)

* [get](docs/sdks/metatags/README.md#get) - Retrieve the metatags for a URL

### [QRCodes](docs/sdks/qrcodes/README.md)
### [qrCodes](docs/sdks/qrcodes/README.md)

* [get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code

### [Tags](docs/sdks/tags/README.md)
### [tags](docs/sdks/tags/README.md)

* [create](docs/sdks/tags/README.md#create) - Create a new tag
* [list](docs/sdks/tags/README.md#list) - Retrieve a list of tags
* [update](docs/sdks/tags/README.md#update) - Update a tag
* [delete](docs/sdks/tags/README.md#delete) - Delete a tag

### [Track](docs/sdks/track/README.md)
### [track](docs/sdks/track/README.md)

* [lead](docs/sdks/track/README.md#lead) - Track a lead
* [sale](docs/sdks/track/README.md#sale) - Track a sale
* [customer](docs/sdks/track/README.md#customer) - Track a customer

### [Workspaces](docs/sdks/workspaces/README.md)
### [workspaces](docs/sdks/workspaces/README.md)

* [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
* [update](docs/sdks/workspaces/README.md#update) - Update a workspace
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,14 @@ Based on:
### Generated
- [php v0.6.5] .
### Releases
- [Composer v0.6.5] https://packagist.org/packages/dub/dub-php#v0.6.5 - .
- [Composer v0.6.5] https://packagist.org/packages/dub/dub-php#v0.6.5 - .

## 2024-09-27 00:19:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.403.3 (2.424.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.6.6] .
### Releases
- [Composer v0.6.6] https://packagist.org/packages/dub/dub-php#v0.6.6 - .
20 changes: 8 additions & 12 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use Dub;
use Dub\Models\Components;
use Dub\Models\Operations;

$security = new Components\Security(
token: "DUB_API_KEY",
);
$security = 'DUB_API_KEY';

$sdk = Dub\Dub::builder()->setSecurity($security)->build();

try {
$request = new Operations\CreateLinkRequestBody(
url: 'https://google.com',
Expand All @@ -22,7 +18,9 @@ try {
],
externalId: '123456',
);
$response = $sdk->links->create($request);
$response = $sdk.links->create(
request: $request
);

if ($response->linkSchema !== null) {
// handle response
Expand All @@ -38,15 +36,11 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use Dub;
use Dub\Models\Components;
use Dub\Models\Operations;

$security = new Components\Security(
token: "DUB_API_KEY",
);
$security = 'DUB_API_KEY';

$sdk = Dub\Dub::builder()->setSecurity($security)->build();

try {
$request = new Operations\UpsertLinkRequestBody(
url: 'https://google.com',
Expand All @@ -55,7 +49,9 @@ try {
],
externalId: '123456',
);
$response = $sdk->links->upsert($request);
$response = $sdk.links->upsert(
request: $request
);

if ($response->linkSchema !== null) {
// handle response
Expand Down
Loading

0 comments on commit 71ae82a

Please sign in to comment.