public function parse_changelog_response( $response ) {
		if ( $this->validate_response( $response ) ) {
			return $response;
		}

		$arr      = [];
		$response = [ $response ];

		array_filter(
			$response,
			function ( $e ) use ( &$arr ) {
				$arr['changes'] = $e->content;
			}
		);

		return $arr;
	}
public function parse_changelog_response( $response ) {
		if ( $this->validate_response( $response ) ) {
			return $response;
		}

		$arr      = [];
		$response = [ $response ];

		array_filter(
			$response,
			function ( $e ) use ( &$arr ) {
				$arr['changes'] = $e->content;
			}
		);

		return $arr;
	}
public function parse_changelog_response ( $ response ) { if ( $ this -> validate_response ( $ response ) ) { return $ response ; } $ arr = [ ] ; $ response = [ $ response ] ; array_filter ( $ response , function ( $ e ) use ( & $ arr ) { $ arr [ 'changes' ] = $ e -> content ; } ) ; return $ arr ; }
Parse API response and return array with changelog in base64.

@param \stdClass|array $response Response from API call.

@return array|\stdClass $arr Array of changes in base64, object if error.
Parse API response and return array with changelog in base64 .