protected function getDetailedLog( $id ) {
		// @see: https://docraptor.com/documentation/api#doc_log_listing
		$response = wp_remote_get( esc_url( 'https://docraptor.com/doc_logs.json?per_page=25&user_credentials=' . DOCRAPTOR_API_KEY ) );
		if ( is_wp_error( $response ) ) {
			return $response->get_error_message();
		}
		$logs = json_decode( $response['body'] );
		if ( $logs ) {
			foreach ( $logs as $log ) {
				if ( $log->status_id == $id ) { // @codingStandardsIgnoreLine
					return $log->generation_log;
				}
			}
		}
		return '';
	}
protected function getDetailedLog( $id ) {
		// @see: https://docraptor.com/documentation/api#doc_log_listing
		$response = wp_remote_get( esc_url( 'https://docraptor.com/doc_logs.json?per_page=25&user_credentials=' . DOCRAPTOR_API_KEY ) );
		if ( is_wp_error( $response ) ) {
			return $response->get_error_message();
		}
		$logs = json_decode( $response['body'] );
		if ( $logs ) {
			foreach ( $logs as $log ) {
				if ( $log->status_id == $id ) { // @codingStandardsIgnoreLine
					return $log->generation_log;
				}
			}
		}
		return '';
	}
protected function getDetailedLog ( $ id ) { // @see: https://docraptor.com/documentation/api#doc_log_listing $ response = wp_remote_get ( esc_url ( 'https://docraptor.com/doc_logs.json?per_page=25&user_credentials=' . DOCRAPTOR_API_KEY ) ) ; if ( is_wp_error ( $ response ) ) { return $ response -> get_error_message ( ) ; } $ logs = json_decode ( $ response [ 'body' ] ) ; if ( $ logs ) { foreach ( $ logs as $ log ) { if ( $ log -> status_id == $ id ) { // @codingStandardsIgnoreLine return $ log -> generation_log ; } } } return '' ; }
When given a DocRaptor async status ID, return the document generation log for the relevant job.

@param string $id

@return string
When given a DocRaptor async status ID return the document generation log for the relevant job .