Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix go sdk issues #77

Merged
merged 4 commits into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [4.7.1](https://github.com/plivo/plivo-go/tree/v4.7.1) (2020-07-13)
- Fix Call Create & Retrieve Call details API responses.

## [4.7.0](https://github.com/plivo/plivo-go/tree/v4.7.0) (2020-05-28)
- Add JWT helper functions.

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.7.0"
const sdkVersion = "4.7.1"

type ClientOptions struct {
HttpClient *http.Client
Expand Down
34 changes: 17 additions & 17 deletions calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ type QueuedCallService struct {
}

type Call struct {
FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"`
ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"`
AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"`
CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"`
ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"`
EndTime string `json:"end_time,omitempty" url:"end_time,omitempty"`
TotalAmount string `json:"total_amount,omitempty" url:"total_amount,omitempty"`
CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"`
CallDuration int64 `json:"call_duration,omitempty" url:"call_duration,omitempty"`
MessageURL string `json:"message_url,omitempty" url:"message_url,omitempty"`
ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"`
CallState string `json:"call_state,omitempty" url:"call_state,omitempty"`
FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"`
ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"`
AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"`
CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"`
ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"`
EndTime string `json:"end_time,omitempty" url:"end_time,omitempty"`
TotalAmount string `json:"total_amount,omitempty" url:"total_amount,omitempty"`
CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"`
CallDuration int64 `json:"call_duration,omitempty" url:"call_duration,omitempty"`
MessageURL string `json:"message_url,omitempty" url:"message_url,omitempty"`
ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"`
CallState string `json:"call_state,omitempty" url:"call_state,omitempty"`
HangupCauseCode int64 `json:"hangup_cause_code,omitempty" url:"hangup_cause_code,omitempty"`
HangupCauseName string `json:"hangup_cause_name,omitempty" url:"hangup_cause_name,omitempty"`
HangupSource string `json:"hangup_source,omitempty" url:"hangup_source,omitempty"`

TotalRate string `json:"total_rate,omitempty" url:"total_rate,omitempty"`
}

type LiveCall struct {
Expand Down Expand Up @@ -89,10 +89,10 @@ type CallCreateParams struct {

// Stores response for making a call.
type CallCreateResponse struct {
Message string `json:"message" url:"message"`
ApiID string `json:"api_id" url:"api_id"`
AppID string `json:"app_id" url:"app_id"`
RequestUUID string `json:"request_uuid" url:"request_uuid"`
Message string `json:"message" url:"message"`
ApiID string `json:"api_id" url:"api_id"`
AppID string `json:"app_id" url:"app_id"`
RequestUUID interface{} `json:"request_uuid" url:"request_uuid"`
}

type CallListParams struct {
Expand Down