Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactBody ¶
type ContactBody struct { Id int `json:"id,omitempty"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` EmailWork string `json:"email_work"` Company string `json:"company"` Address string `json:"address"` AddressWork string `json:"address_work"` PhoneWork string `json:"phone_work"` MobileWork string `json:"mobile_work"` Phone string `json:"phone"` Mobile string `json:"mobile"` Fax string `json:"fax"` FaxWork string `json:"fax_work"` FacebookUrl string `json:"facebook_url"` LinkedinUrl string `json:"linkedin_url"` XingUrl string `json:"xing_url"` TwitterAccount string `json:"twitter_account"` Blocked bool `json:"blocked"` }
ContactBody is to build a new contact
type ContactReturn ¶
type ContactReturn struct { Id int `json:"id"` UserId int `json:"user_id"` Speeddial interface{} `json:"speeddial"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` EmailWork string `json:"email_work"` Company string `json:"company"` Address string `json:"address"` AddressWork string `json:"address_work"` PhoneWork string `json:"phone_work"` MobileWork string `json:"mobile_work"` Phone string `json:"phone"` Mobile string `json:"mobile"` Fax string `json:"fax"` FaxWork string `json:"fax_work"` FacebookUrl string `json:"facebook_url"` LinkedinUrl string `json:"linkedin_url"` XingUrl string `json:"xing_url"` TwitterAccount string `json:"twitter_account"` Blocked bool `json:"blocked"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` }
ContactReturn is to decode the json return
func AddContact ¶
func AddContact(body ContactBody, token string) (ContactReturn, error)
AddContact is to add a new contact
func Contact ¶
func Contact(id string, token string) (ContactReturn, error)
Contact is to get a contact by id
func Contacts ¶
func Contacts(token string) ([]ContactReturn, error)
Contacts is to get all contacts from the api
func UpdateContact ¶
func UpdateContact(body ContactBody, token string) (ContactReturn, error)
UpdateContact is to add a new contact
type DeleteContactReturn ¶
type DeleteContactReturn struct { Id int `json:"id"` UserId int `json:"user_id"` Speeddail interface{} `json:"speeddail"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Number1 string `json:"number1"` Number2 string `json:"number2"` Number3 string `json:"number3"` Number4 string `json:"number4"` Number5 string `json:"number5"` IsOnBlacklist bool `json:"isOnBlacklist"` Email string `json:"email"` MoreNumbers interface{} `json:"more_numbers"` ClientId int `json:"client_id"` IsGlobal bool `json:"is_global"` Company string `json:"company"` Address string `json:"address"` ContactBookId string `json:"contact_book_id"` ImportFrom interface{} `json:"import_from"` ImportId interface{} `json:"import_id"` EmailWork string `json:"email_work"` AddressWork string `json:"address_work"` Fax string `json:"fax"` FaxWork string `json:"fax_work"` Color interface{} `json:"color"` FacebookUrl string `json:"facebook_url"` LinkedinUrl string `json:"linkedin_url"` XingUrl string `json:"xing_url"` GoogleplusUrl interface{} `json:"googleplus_url"` TwitterAccount string `json:"twitter_account"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
DeleteContactReturn is to decode the json data
func DeleteContact ¶
func DeleteContact(id string, token string) (DeleteContactReturn, error)
DeleteContact is to add a new contact
type SendSmsBody ¶
SendSmsBody is to build the request body
type SendSmsReturn ¶
func SendSms ¶
func SendSms(body SendSmsBody, token string) (SendSmsReturn, error)
SendSms is to send a sms via the placetel api
Click to show internal directories.
Click to hide internal directories.