Overview

Namespaces

  • SMSApi
    • Api
      • Action
        • Phonebook
        • Sender
        • Sms
        • User
      • Response
    • Exception
    • Proxy
      • Http

Classes

  • AbstractResponse
  • ContactResponse
  • ContactsResponse
  • CountableResponse
  • ErrorResponse
  • GroupResponse
  • GroupsResponse
  • MessageResponse
  • PointsResponse
  • RawResponse
  • SenderResponse
  • SendersResponse
  • StatusResponse
  • UserResponse
  • UsersResponse

Interfaces

  • Response
  • Overview
  • Namespace
  • Class

Class ContactResponse

Class ContactResponse

SMSApi\Api\Response\AbstractResponse implements SMSApi\Api\Response\Response
Extended by SMSApi\Api\Response\ContactResponse
Namespace: SMSApi\Api\Response
Package: SMSApi\Api\Response
Located at Api/Response/ContactResponse.php
Methods summary
public
# __construct( $data )

Parameters

$data

Overrides

SMSApi\Api\Response\AbstractResponse::__construct()
public integer
# getNumber( )

Returns phone number

Returns phone number

Returns

integer
public string
# getFirstName( )

Returns contact first name

Returns contact first name

Returns

string
public string
# getLastName( )

Returns contact last name

Returns contact last name

Returns

string
public string
# getInfo( )

Returns contact information text

Returns contact information text

Returns

string
public string
# getEmail( )

Returns contact e-mail address

Returns contact e-mail address

Returns

string
Example: example@smsapi.com
public string
# getBirthday( )

Returns contact birthday date

Returns contact birthday date

Returns

string
Example: 1974-1-14
public string
# getCity( )

Returns contact city name

Returns contact city name

Returns

string
public string
# getGender( )

Returns contact gender

Returns contact gender

Returns

string
Example male or female

See

SMSApi\Api\Response\ContactResponse::GENDER_FEMALE
SMSApi\Api\Response\ContactResponse::GENDER_MALE
public integer
# getDateAdd( )

Returns create date in timestamp

Returns create date in timestamp

Returns

integer
date in timestamp
public integer
# getDateMod( )

Returns modification date in timestamp

Returns modification date in timestamp

Returns

integer
date in timestamp
public array
# getGroups( )

Returns groups

Returns groups

Returns

array
with group names

Throws

SMSApi\Exception\InvalidParameterException
Methods inherited from SMSApi\Api\Response\AbstractResponse
decode()
Constants summary
string GENDER_FEMALE
# "female"
string GENDER_MALE
# "male"
Properties inherited from SMSApi\Api\Response\AbstractResponse
$obj
SMSAPI Api Client API documentation generated by ApiGen