$args The arguments to pass to the API request. * @return WP_Error|array The response from the API request. */ public function call( array $args = array() ) { $query_args = array( 'url' => $args['url'], 'period_start' => $args['period_start'], 'period_end' => $args['period_end'], ); // Filter out the empty values. $query_args = array_filter( $query_args ); return $this->request( 'GET', $query_args ); } }