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

17 lines
327 B
Go

package kavenegar
import (
"net/url"
)
//Select ...
func (message *MessageService) Select(messageid []string) ([]Message, error) {
u := message.client.EndPoint("sms", "select")
m := new(MessageResult)
v := url.Values{
"messageid": messageid,
}
err := message.client.Execute(u.String(), v, m)
return m.Entries, err
}