public function describe($object_name = null, $options = [])
    {
        $url = sprintf('%s/sobjects', $this->getBaseUrl());
        
        if ( ! empty($object_name)) {
            $url .= sprintf('/%s/describe', $object_name);
        }

        return $this->request($url, $options);
    }
public function describe($object_name = null, $options = [])
    {
        $url = sprintf('%s/sobjects', $this->getBaseUrl());
        
        if ( ! empty($object_name)) {
            $url .= sprintf('/%s/describe', $object_name);
        }

        return $this->request($url, $options);
    }
public function describe ( $ object_name = null , $ options = [ ] ) { $ url = sprintf ( '%s/sobjects' , $ this -> getBaseUrl ( ) ) ; if ( ! empty ( $ object_name ) ) { $ url .= sprintf ( '/%s/describe' , $ object_name ) ; } return $ this -> request ( $ url , $ options ) ; }
Describes all global objects available in the organization.

@param string $object_name
@param array $options
@return array
Describes all global objects available in the organization .