api_key = $key; // The Request class needs these to make requests. if ( empty( $this->version ) || empty( $this->name ) ) { throw new Exception( __( 'API instances require a version and name properties', 'wp-smushit' ), 404 ); } $this->request = new Request( $this ); } }