Skip to content

Commit

Permalink
Merge pull request #58 from plivo/hot-fix
Browse files Browse the repository at this point in the history
removed unwanted clients
  • Loading branch information
nixonsam authored Jan 27, 2020
2 parents ad3917f + f36d688 commit 2b7d822
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Change Log
## [4.1.5](https://github.com/plivo/plivo-go/tree/v4.1.5) (2020-01-24)
- Hot fix for go build

## [4.1.4](https://github.com/plivo/plivo-go/tree/v4.1.4) (2019-12-20)
- Add Powerpack support
Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "4.1.4"
const sdkVersion = "4.1.5"

type ClientOptions struct {
HttpClient *http.Client
Expand Down
12 changes: 2 additions & 10 deletions plivoclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import (
"net/http"
"net/url"
"os"
"time"
"runtime"
"time"
)


const baseUrlString = "https://api.plivo.com/"
const baseRequestString = "/v1/Account/%s/"


type Client struct {
BaseClient

Expand All @@ -31,10 +29,6 @@ type Client struct {
QueuedCalls *QueuedCallService
Conferences *ConferenceService
Powerpack *PowerpackService
Addresses *AddressService
Identities *IdentityService
RequestInterceptor func(request *http.Request)
ResponseInterceptor func(response *http.Response)
}

/*
Expand Down Expand Up @@ -91,13 +85,11 @@ func NewClient(authId, authToken string, options *ClientOptions) (client *Client
client.QueuedCalls = &QueuedCallService{client: client}
client.Conferences = &ConferenceService{client: client}
client.Powerpack = &PowerpackService{client: client}
client.Addresses = &AddressService{client:client}
client.Identities = &IdentityService{client:client}
return
}

func (client *Client) NewRequest(method string, params interface{}, formatString string,
formatParams ...interface{}) (*http.Request, error) {
formatParams ...interface{}) (*http.Request, error) {
formatParams = append([]interface{}{client.AuthId}, formatParams...)
formatString = fmt.Sprintf("%s/%s", "%s", formatString)
return client.BaseClient.NewRequest(method, params, baseRequestString, formatString, formatParams...)
Expand Down

0 comments on commit 2b7d822

Please sign in to comment.