forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/kavenegar/kavenegar-go/kavenegar.go

26 lines
514 B
Go

package kavenegar
//Kavenegar ...
type Kavenegar struct {
Message *MessageService
Account *AccountService
Verify *VerifyService
Call *CallService
}
//New ...
func New(apikey string) *Kavenegar {
client := NewClient(apikey)
return NewWithClient(client)
}
//NewWithClient ...
func NewWithClient(client *Client) *Kavenegar {
k := &Kavenegar{}
k.Account = NewAccountService(client)
k.Message = NewMessageService(client)
k.Verify = NewVerifyService(client)
k.Call = NewCallService(client)
return k
}