Skip to content

Commit

Permalink
v3 Release (#36)
Browse files Browse the repository at this point in the history
* prep for v3 release

* more updates
  • Loading branch information
vvillait88 authored Jul 15, 2024
1 parent 9e25d80 commit 0171027
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

1. To use _peopledatalabs-go_ SDK in your project initialize go modules then run:
```bash
go get github.com/peopledatalabs/peopledatalabs-go/v2
go get github.com/peopledatalabs/peopledatalabs-go/v3
```
2. Sign up for a [free PDL API key](https://www.peopledatalabs.com/signup).
3. Set your API key as a environment variable.
Expand All @@ -41,8 +41,8 @@ First, create the PeopleDataLabs client:
package main
import (
pdl "github.com/peopledatalabs/peopledatalabs-go/v2"
pdlmodel "github.com/peopledatalabs/peopledatalabs-go/v2/model"
pdl "github.com/peopledatalabs/peopledatalabs-go/v3"
pdlmodel "github.com/peopledatalabs/peopledatalabs-go/v3/model"
)
Expand Down Expand Up @@ -331,9 +331,9 @@ result, err := client.IP(ctx, params)
# To enable sandbox usage, use the following
import (
pdl "github.com/peopledatalabs/peopledatalabs-go/v2"
"github.com/peopledatalabs/peopledatalabs-go/v2/api"
pdlmodel "github.com/peopledatalabs/peopledatalabs-go/v2/model"
pdl "github.com/peopledatalabs/peopledatalabs-go/v3"
"github.com/peopledatalabs/peopledatalabs-go/v3/api"
pdlmodel "github.com/peopledatalabs/peopledatalabs-go/v3/model"
)
client := pdl.New(apiKey, api.ClientOptions(func(c *api.Client) {
Expand Down
2 changes: 1 addition & 1 deletion api/autocomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/autocomplete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"
"time"

"github.com/peopledatalabs/peopledatalabs-go/v2/logger"
"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/logger"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/google/go-querystring/query"
)
Expand Down
2 changes: 1 addition & 1 deletion api/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/company.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/company_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/jobtitle.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/jobtitle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const locationCleanPath = "/location/clean"
Expand Down
2 changes: 1 addition & 1 deletion api/location_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/person.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/person_sandbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/person_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/school.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const schoolCleanPath = "/school/clean"
Expand Down
2 changes: 1 addition & 1 deletion api/school_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion api/skill.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/skill_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/peopledatalabs/peopledatalabs-go/v2/model"
"github.com/peopledatalabs/peopledatalabs-go/v3/model"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/peopledatalabs/peopledatalabs-go/v2
module github.com/peopledatalabs/peopledatalabs-go/v3

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/http"
"time"

"github.com/peopledatalabs/peopledatalabs-go/v2/api"
"github.com/peopledatalabs/peopledatalabs-go/v2/logger"
"github.com/peopledatalabs/peopledatalabs-go/v3/api"
"github.com/peopledatalabs/peopledatalabs-go/v3/logger"
)

// WithHTTPClient sets a custom HTTP Client
Expand Down
2 changes: 1 addition & 1 deletion pld.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package peopledatalabs_go

import (
"github.com/peopledatalabs/peopledatalabs-go/v2/api"
"github.com/peopledatalabs/peopledatalabs-go/v3/api"
)

const Version = "3.0.0"
Expand Down

0 comments on commit 0171027

Please sign in to comment.