\O3PO_Doaj

Encapsulates the interface with the external service DOAJ.

Provides methods to interface with DOAJ.

Summary

Methods
Properties
Constants
remote_post_meta_data_to_doaj()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

remote_post_meta_data_to_doaj()

remote_post_meta_data_to_doaj(string  $doaj_json, string  $doaj_api_url, string  $doaj_api_key, integer  $timeout = 10) : array|\WP_Error

Post meta-data to DOAJ

Posts meta-data in json format to the DOAJ.

Parameters

string $doaj_json

Json encoded meta-data in a format suitable for DOAJ

string $doaj_api_url

The DOAJ API submission URL

string $doaj_api_key

The DOAJ API key

integer $timeout

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

Returns

array|\WP_Error —

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