Skip to content

Commit d2957bb

Browse files
authored
Merge pull request #1 from cbsinteractive/fix/module
fix: import module
2 parents 2c8776d + b451def commit d2957bb

File tree

4 files changed

+50
-31
lines changed

4 files changed

+50
-31
lines changed

bitmovin_api.go

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package bitmovin
2+
23
import (
3-
"github.com/bitmovin/bitmovin-api-sdk-go/common"
4-
5-
"github.com/bitmovin/bitmovin-api-sdk-go/account"
6-
"github.com/bitmovin/bitmovin-api-sdk-go/analytics"
7-
"github.com/bitmovin/bitmovin-api-sdk-go/encoding"
8-
"github.com/bitmovin/bitmovin-api-sdk-go/general"
9-
"github.com/bitmovin/bitmovin-api-sdk-go/notifications"
10-
"github.com/bitmovin/bitmovin-api-sdk-go/player"
4+
"github.com/bitmovin/bitmovin-api-sdk-go/account"
5+
"github.com/bitmovin/bitmovin-api-sdk-go/analytics"
6+
"github.com/bitmovin/bitmovin-api-sdk-go/common"
7+
"github.com/bitmovin/bitmovin-api-sdk-go/encoding"
8+
"github.com/bitmovin/bitmovin-api-sdk-go/general"
9+
"github.com/bitmovin/bitmovin-api-sdk-go/notifications"
10+
"github.com/bitmovin/bitmovin-api-sdk-go/player"
1111
)
1212

1313
type BitmovinApi struct {
14-
apiClient *common.ApiClient
15-
Account *account.AccountApi
16-
Analytics *analytics.AnalyticsApi
17-
Encoding *encoding.EncodingApi
18-
General *general.GeneralApi
19-
Notifications *notifications.NotificationsApi
20-
Player *player.PlayerApi
14+
apiClient *common.ApiClient
15+
Account *account.AccountApi
16+
Analytics *analytics.AnalyticsApi
17+
Encoding *encoding.EncodingApi
18+
General *general.GeneralApi
19+
Notifications *notifications.NotificationsApi
20+
Player *player.PlayerApi
2121
}
2222

2323
func NewBitmovinApi(configs ...func(*common.ApiClient)) (*BitmovinApi, error) {
@@ -26,25 +26,24 @@ func NewBitmovinApi(configs ...func(*common.ApiClient)) (*BitmovinApi, error) {
2626
return nil, err
2727
}
2828

29-
api := &BitmovinApi{apiClient: apiClient}
29+
api := &BitmovinApi{apiClient: apiClient}
3030

31-
accountApi, err := account.NewAccountApi(configs...)
32-
api.Account = accountApi
33-
analyticsApi, err := analytics.NewAnalyticsApi(configs...)
34-
api.Analytics = analyticsApi
35-
encodingApi, err := encoding.NewEncodingApi(configs...)
36-
api.Encoding = encodingApi
37-
generalApi, err := general.NewGeneralApi(configs...)
38-
api.General = generalApi
39-
notificationsApi, err := notifications.NewNotificationsApi(configs...)
40-
api.Notifications = notificationsApi
41-
playerApi, err := player.NewPlayerApi(configs...)
42-
api.Player = playerApi
31+
accountApi, err := account.NewAccountApi(configs...)
32+
api.Account = accountApi
33+
analyticsApi, err := analytics.NewAnalyticsApi(configs...)
34+
api.Analytics = analyticsApi
35+
encodingApi, err := encoding.NewEncodingApi(configs...)
36+
api.Encoding = encodingApi
37+
generalApi, err := general.NewGeneralApi(configs...)
38+
api.General = generalApi
39+
notificationsApi, err := notifications.NewNotificationsApi(configs...)
40+
api.Notifications = notificationsApi
41+
playerApi, err := player.NewPlayerApi(configs...)
42+
api.Player = playerApi
4343

4444
if err != nil {
4545
return nil, err
4646
}
4747

4848
return api, nil
4949
}
50-

common/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package common
22

33
import (
44
"github.com/bitmovin/bitmovin-api-sdk-go/log"
5-
"github.com/bitmovin/bitmovin-api-sdk-go/rest"
65
"github.com/bitmovin/bitmovin-api-sdk-go/model"
6+
"github.com/bitmovin/bitmovin-api-sdk-go/rest"
77
"github.com/bitmovin/bitmovin-api-sdk-go/serialization"
88

99
"encoding/json"
10+
"errors"
1011
"fmt"
1112
"io/ioutil"
1213
"net/http"
@@ -17,7 +18,6 @@ import (
1718
"strconv"
1819
"strings"
1920
"time"
20-
"errors"
2121
)
2222

2323
type ApiClient struct {

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/cbsinteractive/mc-bitmovin-api-sdk-go
2+
3+
go 1.24.4
4+
5+
require (
6+
github.com/bitmovin/bitmovin-api-sdk-go v1.30.0-alpha.0 // indirect
7+
github.com/mitchellh/mapstructure v1.5.0 // indirect
8+
)

go.sum

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
github.com/bitmovin/bitmovin-api-sdk-go v1.30.0-alpha.0 h1:+y7hlUqh0rMWuRUr7tIlzsz2rPq+9QU/54BCkXl8YfA=
2+
github.com/bitmovin/bitmovin-api-sdk-go v1.30.0-alpha.0/go.mod h1:Ho8JxtJ2Yf6Gwi9z+5oXuEi2xaIFiFPSs70YuXA7eTo=
3+
github.com/bitmovin/bitmovin-api-sdk-go v1.233.0 h1:3YfBF+OdzfOHbOCSLcSJN4Tf5YIMi+IJR4OHEzNN4q0=
4+
github.com/bitmovin/bitmovin-api-sdk-go v1.233.0/go.mod h1:CycJEnWd1/5GuSf7Q7JBF/wPv0JaS9GMDHYHzc+f5uA=
5+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
6+
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
7+
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
8+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
9+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
10+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
11+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
12+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

0 commit comments

Comments
 (0)