Documentation

O3PO_Doaj
in package

Encapsulates the interface with the external service DOAJ.

Provides methods to interface with DOAJ.

Tags
subpackage

O3PO/includes

author

Christian Gogolin o3po@quantum-journal.org

Table of Contents

Methods

remote_post_meta_data_to_doaj()  : array<string|int, mixed>|WP_Error
Post meta-data to DOAJ

Methods

remote_post_meta_data_to_doaj()

Post meta-data to DOAJ

public static remote_post_meta_data_to_doaj(string $doaj_json, string $doaj_api_url, string $doaj_api_key[, int $timeout = 10 ]) : array<string|int, mixed>|WP_Error

Posts meta-data in json format to the DOAJ.

Parameters
$doaj_json : string

Json encoded meta-data in a format suitable for DOAJ

$doaj_api_url : string

The DOAJ API submission URL

$doaj_api_key : string

The DOAJ API key

$timeout : int = 10

Maximum number of seconds to wait for a response (default 10 seconds)

Tags
since:

0.3.0

access

public

Return values
array<string|int, mixed>|WP_Error —

The result of a wp_remote_post() call or a WP_Error in case of errors


        
On this page

Search results