public function get($action, array $query = [])
    {
        $query['action'] = $action;
        $query['username'] = $this->username;
        $query['password'] = $this->password;

        $endpoint = 'json';

        if (!empty($query)) {
            $endpoint .= '?' . http_build_query($query);
        }

        $request = $this->createRequest('GET', $endpoint);
        return $this->sendRequest($request);
    }
public function get($action, array $query = [])
    {
        $query['action'] = $action;
        $query['username'] = $this->username;
        $query['password'] = $this->password;

        $endpoint = 'json';

        if (!empty($query)) {
            $endpoint .= '?' . http_build_query($query);
        }

        $request = $this->createRequest('GET', $endpoint);
        return $this->sendRequest($request);
    }
public function get ( $ action , array $ query = [ ] ) { $ query [ 'action' ] = $ action ; $ query [ 'username' ] = $ this -> username ; $ query [ 'password' ] = $ this -> password ; $ endpoint = 'json' ; if ( ! empty ( $ query ) ) { $ endpoint .= '?' . http_build_query ( $ query ) ; } $ request = $ this -> createRequest ( 'GET' , $ endpoint ) ; return $ this -> sendRequest ( $ request ) ; }
Make an HTTP GET request.

**Example**

```php
$response = $client->get('message_send', ['to' => '+27000000000', 'text' => 'Hello World', 'from' => '+27000000000']);
```

@param string $action
@param array $query

@return mixed
Make an HTTP GET request .