Skip to content

Commit 1e22194

Browse files
chore: update SDK settings
1 parent b26b447 commit 1e22194

Some content is hidden

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

59 files changed

+197
-119
lines changed

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.1-alpha.0"
3+
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 13
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scrapegraphai%2Fscrapegraphai-sdk-1bb59000acb1297b8bbff37e8e34ed4751b9708a050695796e64ed3a8900ceef.yml
33
openapi_spec_hash: 141d244ff26ff28ab56901a19fb46347
4-
config_hash: 00948c20ba1a1093ddc559e83a9c86a3
4+
config_hash: 841efa635faf188bb88c338627bf9658

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
4141
directive. This can be done through the CLI with the following:
4242

4343
```sh
44-
$ go mod edit -replace github.com/stainless-sdks/scrapegraphai-sdk-go=/path/to/scrapegraphai-sdk-go
44+
$ go mod edit -replace github.com/ScrapeGraphAI/scrapegraph-sdk=/path/to/scrapegraph-sdk
4545
```
4646

4747
## Running tests

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Scrapegraphai SDK Go API Library
22

3-
<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go"><img src="https://pkg.go.dev/badge/github.com/stainless-sdks/scrapegraphai-sdk-go.svg" alt="Go Reference"></a>
3+
<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk"><img src="https://pkg.go.dev/badge/github.com/ScrapeGraphAI/scrapegraph-sdk.svg" alt="Go Reference"></a>
44

55
The Scrapegraphai SDK Go library provides convenient access to the Scrapegraphai SDK REST API
66
from applications written in Go.
@@ -9,18 +9,26 @@ It is generated with [Stainless](https://www.stainless.com/).
99

1010
## Installation
1111

12+
<!-- x-release-please-start-version -->
13+
1214
```go
1315
import (
14-
"github.com/stainless-sdks/scrapegraphai-sdk-go" // imported as scrapegraphaisdk
16+
"github.com/ScrapeGraphAI/scrapegraph-sdk" // imported as scrapegraphaisdk
1517
)
1618
```
1719

20+
<!-- x-release-please-end -->
21+
1822
Or to pin the version:
1923

24+
<!-- x-release-please-start-version -->
25+
2026
```sh
21-
go get -u 'github.com/stainless-sdks/scrapegraphai-sdk-go@v0.0.1-alpha.0'
27+
go get -u 'github.com/ScrapeGraphAI/scrapegraph[email protected]'
2228
```
2329

30+
<!-- x-release-please-end -->
31+
2432
## Requirements
2533

2634
This library requires Go 1.18+.
@@ -35,8 +43,8 @@ package main
3543
import (
3644
"context"
3745

38-
"github.com/stainless-sdks/scrapegraphai-sdk-go"
39-
"github.com/stainless-sdks/scrapegraphai-sdk-go/option"
46+
"github.com/ScrapeGraphAI/scrapegraph-sdk"
47+
"github.com/ScrapeGraphAI/scrapegraph-sdk/option"
4048
)
4149

4250
func main() {
@@ -262,7 +270,7 @@ client.Credits.List(context.TODO(), ...,
262270

263271
The request option `option.WithDebugLog(nil)` may be helpful while debugging.
264272

265-
See the [full list of request options](https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go/option).
273+
See the [full list of request options](https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk/option).
266274

267275
### Pagination
268276

@@ -459,7 +467,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
459467

460468
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
461469

462-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/scrapegraphai-sdk-go/issues) with questions, bugs, or suggestions.
470+
We are keen for your feedback; please open an [issue](https://www.github.com/ScrapeGraphAI/scrapegraph-sdk/issues) with questions, bugs, or suggestions.
463471

464472
## Contributing
465473

aliases.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package scrapegraphaisdk
44

55
import (
6-
"github.com/stainless-sdks/scrapegraphai-sdk-go/internal/apierror"
7-
"github.com/stainless-sdks/scrapegraphai-sdk-go/packages/param"
6+
"github.com/ScrapeGraphAI/scrapegraph-sdk/internal/apierror"
7+
"github.com/ScrapeGraphAI/scrapegraph-sdk/packages/param"
88
)
99

1010
// aliased to make [param.APIUnion] private when embedding

api.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,56 @@
22

33
Methods:
44

5-
- <code title="get /v1/credits">client.Credits.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#CreditService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
5+
- <code title="get /v1/credits">client.Credits.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#CreditService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
66

77
# Validate
88

99
Methods:
1010

11-
- <code title="get /v1/validate">client.Validate.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#ValidateService.Check">Check</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
11+
- <code title="get /v1/validate">client.Validate.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#ValidateService.Check">Check</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
1212

1313
# Feedback
1414

1515
Methods:
1616

17-
- <code title="post /v1/feedback">client.Feedback.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#FeedbackService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
17+
- <code title="post /v1/feedback">client.Feedback.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#FeedbackService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
1818

1919
# Smartscraper
2020

2121
Methods:
2222

23-
- <code title="post /v1/smartscraper">client.Smartscraper.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SmartscraperService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
24-
- <code title="get /v1/smartscraper/{request_id}">client.Smartscraper.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SmartscraperService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
23+
- <code title="post /v1/smartscraper">client.Smartscraper.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SmartscraperService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
24+
- <code title="get /v1/smartscraper/{request_id}">client.Smartscraper.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SmartscraperService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
2525

2626
# Searchscraper
2727

2828
Methods:
2929

30-
- <code title="post /v1/searchscraper">client.Searchscraper.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SearchscraperService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
31-
- <code title="get /v1/searchscraper/{request_id}">client.Searchscraper.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SearchscraperService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
30+
- <code title="post /v1/searchscraper">client.Searchscraper.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SearchscraperService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
31+
- <code title="get /v1/searchscraper/{request_id}">client.Searchscraper.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SearchscraperService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
3232

3333
# Markdownify
3434

3535
Methods:
3636

37-
- <code title="post /v1/markdownify">client.Markdownify.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#MarkdownifyService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
38-
- <code title="get /v1/markdownify/{request_id}">client.Markdownify.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#MarkdownifyService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
37+
- <code title="post /v1/markdownify">client.Markdownify.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#MarkdownifyService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
38+
- <code title="get /v1/markdownify/{request_id}">client.Markdownify.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#MarkdownifyService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
3939

4040
# GenerateSchema
4141

4242
Methods:
4343

44-
- <code title="get /generate_schema/{request_id}">client.GenerateSchema.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#GenerateSchemaService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
44+
- <code title="get /generate_schema/{request_id}">client.GenerateSchema.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#GenerateSchemaService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, requestID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
4545

4646
# Smartcrawler
4747

4848
Methods:
4949

50-
- <code title="post /smartcrawler">client.Smartcrawler.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SmartcrawlerService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
51-
- <code title="get /smartcrawler/{session_id}">client.Smartcrawler.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SmartcrawlerService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, sessionID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
50+
- <code title="post /smartcrawler">client.Smartcrawler.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SmartcrawlerService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
51+
- <code title="get /smartcrawler/{session_id}">client.Smartcrawler.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SmartcrawlerService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, sessionID <a href="https://pkg.go.dev/builtin#string">string</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
5252

5353
## Sessions
5454

5555
Methods:
5656

57-
- <code title="get /smartcrawler/sessions/all">client.Smartcrawler.Sessions.<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-sdk-go#SmartcrawlerSessionService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
57+
- <code title="get /smartcrawler/sessions/all">client.Smartcrawler.Sessions.<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraph-sdk#SmartcrawlerSessionService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"net/http"
88
"os"
99

10-
"github.com/stainless-sdks/scrapegraphai-sdk-go/internal/requestconfig"
11-
"github.com/stainless-sdks/scrapegraphai-sdk-go/option"
10+
"github.com/ScrapeGraphAI/scrapegraph-sdk/internal/requestconfig"
11+
"github.com/ScrapeGraphAI/scrapegraph-sdk/option"
1212
)
1313

1414
// Client creates a struct with services and top level methods that help with

client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/stainless-sdks/scrapegraphai-sdk-go"
14-
"github.com/stainless-sdks/scrapegraphai-sdk-go/internal"
15-
"github.com/stainless-sdks/scrapegraphai-sdk-go/option"
13+
"github.com/ScrapeGraphAI/scrapegraph-sdk"
14+
"github.com/ScrapeGraphAI/scrapegraph-sdk/internal"
15+
"github.com/ScrapeGraphAI/scrapegraph-sdk/option"
1616
)
1717

1818
type closureTransport struct {

credit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"context"
77
"net/http"
88

9-
"github.com/stainless-sdks/scrapegraphai-sdk-go/internal/requestconfig"
10-
"github.com/stainless-sdks/scrapegraphai-sdk-go/option"
9+
"github.com/ScrapeGraphAI/scrapegraph-sdk/internal/requestconfig"
10+
"github.com/ScrapeGraphAI/scrapegraph-sdk/option"
1111
)
1212

1313
// CreditService contains methods and other services that help with interacting

credit_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"os"
99
"testing"
1010

11-
"github.com/stainless-sdks/scrapegraphai-sdk-go"
12-
"github.com/stainless-sdks/scrapegraphai-sdk-go/internal/testutil"
13-
"github.com/stainless-sdks/scrapegraphai-sdk-go/option"
11+
"github.com/ScrapeGraphAI/scrapegraph-sdk"
12+
"github.com/ScrapeGraphAI/scrapegraph-sdk/internal/testutil"
13+
"github.com/ScrapeGraphAI/scrapegraph-sdk/option"
1414
)
1515

1616
func TestCreditList(t *testing.T) {

0 commit comments

Comments
 (0)