src/Client/MobilePhone.php
public function store(
        $account_id = null,
        $identifier = null,
        $username = null,
        $number,
        $country_code = null,
        $mobile_carrier_id = null,
        $mobile_carrier_code = null,
        $verified = null,
        $upstream_app_name = null,
        $verification_callback = null
    )
    {
        $fields = [];
        //@todo validate params, throw exception when they are missing
        if (!is_null($account_id)) $fields['account_id'] = $account_id;
        if (!is_null($identifier)) $fields['identifier'] = $identifier;
        if (!is_null($username)) $fields['username'] = $username;
        $fields['number'] = $number;
        if (!is_null($country_code)) $fields['country_code'] = $country_code;
        if (!is_null($mobile_carrier_id)) $fields['mobile_carrier_id'] = $mobile_carrier_id;
        if (!is_null($mobile_carrier_code)) $fields['mobile_carrier_code'] = $mobile_carrier_code;
        if (!is_null($verified)) $fields['verified'] = $verified;
        if (!is_null($upstream_app_name)) $fields['upstream_app_name'] = $upstream_app_name;
        if (!is_null($verification_callback)) $fields['verification_callback'] = $verification_callback;

        return $this->_post($fields);
    }
public function store(
        $account_id = null,
        $identifier = null,
        $username = null,
        $number,
        $country_code = null,
        $mobile_carrier_id = null,
        $mobile_carrier_code = null,
        $verified = null,
        $upstream_app_name = null,
        $verification_callback = null
    )
    {
        $fields = [];
        //@todo validate params, throw exception when they are missing
        if (!is_null($account_id)) $fields['account_id'] = $account_id;
        if (!is_null($identifier)) $fields['identifier'] = $identifier;
        if (!is_null($username)) $fields['username'] = $username;
        $fields['number'] = $number;
        if (!is_null($country_code)) $fields['country_code'] = $country_code;
        if (!is_null($mobile_carrier_id)) $fields['mobile_carrier_id'] = $mobile_carrier_id;
        if (!is_null($mobile_carrier_code)) $fields['mobile_carrier_code'] = $mobile_carrier_code;
        if (!is_null($verified)) $fields['verified'] = $verified;
        if (!is_null($upstream_app_name)) $fields['upstream_app_name'] = $upstream_app_name;
        if (!is_null($verification_callback)) $fields['verification_callback'] = $verification_callback;

        return $this->_post($fields);
    }
public function store ( $ account_id = null , $ identifier = null , $ username = null , $ number , $ country_code = null , $ mobile_carrier_id = null , $ mobile_carrier_code = null , $ verified = null , $ upstream_app_name = null , $ verification_callback = null ) { $ fields = [ ] ; //@todo validate params, throw exception when they are missing if ( ! is_null ( $ account_id ) ) $ fields [ 'account_id' ] = $ account_id ; if ( ! is_null ( $ identifier ) ) $ fields [ 'identifier' ] = $ identifier ; if ( ! is_null ( $ username ) ) $ fields [ 'username' ] = $ username ; $ fields [ 'number' ] = $ number ; if ( ! is_null ( $ country_code ) ) $ fields [ 'country_code' ] = $ country_code ; if ( ! is_null ( $ mobile_carrier_id ) ) $ fields [ 'mobile_carrier_id' ] = $ mobile_carrier_id ; if ( ! is_null ( $ mobile_carrier_code ) ) $ fields [ 'mobile_carrier_code' ] = $ mobile_carrier_code ; if ( ! is_null ( $ verified ) ) $ fields [ 'verified' ] = $ verified ; if ( ! is_null ( $ upstream_app_name ) ) $ fields [ 'upstream_app_name' ] = $ upstream_app_name ; if ( ! is_null ( $ verification_callback ) ) $ fields [ 'verification_callback' ] = $ verification_callback ; return $ this -> _post ( $ fields ) ; }
Create Or Update Mobile Phone

Create or update a mobile phone, based the phone number.
An account ID, identifier, or username can be provided to associate the mobile phone with an account.

@param int $account_id
@param string $identifier
@param string $username
@param string $number
@param string $country_code
@param int $mobile_carrier_id
@param string $mobile_carrier_code
@param boolean $verified
@param string $upstream_app_name
@param string $verification_callback
@return \Unirest\Response
Create Or Update Mobile Phone