public function create($identity, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new InviteInstance(
            $this->version,
            $payload,
            $this->solution['serviceSid'],
            $this->solution['channelSid']
        );
    }
public function create($identity, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array('Identity' => $identity, 'RoleSid' => $options['roleSid'], ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new InviteInstance(
            $this->version,
            $payload,
            $this->solution['serviceSid'],
            $this->solution['channelSid']
        );
    }
public function create ( $ identity , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'Identity' => $ identity , 'RoleSid' => $ options [ 'roleSid' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new InviteInstance ( $ this -> version , $ payload , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'channelSid' ] ) ; }
Create a new InviteInstance

@param string $identity A unique string identifier for this User in this
Service.
@param array|Options $options Optional Arguments
@return InviteInstance Newly created InviteInstance
@throws TwilioException When an HTTP error occurs.
Create a new InviteInstance