API Key not accepted
-
Hey,
I have contacted the Benchmark Email company directly and they pointed me to resources within this community, I tried adding this PHP script to my website, but it returned no value for some reason
<?php
// Settings
$service = ‘https://api.benchmarkemail.com/1.0/’;
$api_key = ‘0518dfcd-a8bb-4018-af1e-32f4120d81bd’;
$timeout = 30;
ini_set( ‘default_socket_timeout’, $timeout );// Load WP
require( ‘wp-load.php’ );
require( ‘wp-includes/class-IXR.php’ );// Try Connection
$client = new IXR_Client( $service, false, 443, $timeout );
$args = array( ‘listGet’, $api_key, ”, 1, 100, ‘name’, ‘asc’ );
call_user_func_array( array( $client, ‘query’ ), $args );// Output
print_r( $client->getResponse() );?>
My API Key is 0518dfcd-a8bb-4018-af1e-32f4120d81bd and I keep getting a red cross next to it when I enter it into my plugin – there is no error message displayed.
Cheers for your time
Aiden
- The topic ‘API Key not accepted’ is closed to new replies.