API

Status: public beta

General

No HTML, UTF-8 encoded, XML POST PUSH

API Key

Please request an api key here

Press Release

Every included http link and email address will be automatically translated to a clickable html link.

Field Required Limit / values Comment
headline 1 100  
teaser 1 160  
body 1    
keywords 1 10 keywords Every keyword can contain max. 3 words
category 1 Valid categories:
  • Business
  • Education
  • Entertainment
  • Health
  • Legal
  • Lifestyle
  • Politics
  • Religion
  • Science
  • Sports
  • Technology
 
images 0 3  

Images

Field Required Limit / values Comment
src 1 Mime-types: gif, png, jpeg downloadable image resource
caption 0 80 image caption

Company Profile

Use of a saved Company Profile

Request your company-ids with:
http://www.widepr.com/api/companies.php?apikey=YourApiKey

Field Required Limit / values Comment
company-id 1   request with above link; all additional company data will be ignored

New Company Profile

Field Required Limit / values Comment
company 1 100  
email 1   user and reader reply email address. spam secure
shortabout 1 160  
keywords 1 10 Every keyword can contain max. 3 words
about 1    
logo 0 Mime-Types: gif, png, jpeg downloadable image resource
website 0    
twitter 0    
linkedin 0    
xing 0    
rssfeed 0    
facebook 0    
contactperson 0   Name and/or title of contact
phone 0    
fax 0    
country 1    
state 1    
city 1    
zip 1    
address 1   Street & number plus additonals

PR Agency

Field Required Limit / values Comment
agency 0 [ 0, false, 1, true ] If you have submitted an agency in your account, you can publish the press release with the name of your pr agency.

Notes

Field Required Limit / values Comment
notes 0   notes or praises to the editor

Files

XML Template: press_release.xml


How to

Company-Ids

$apikey = 'YOUR_API_KEY';
$url = "http://www.widepr.com/api/companies.php?apikey=$apikey;
$xml = file_get_contents($url); 

XML POST PUSH

$url = "http://www.widepr.com/api/xmlpush.php";
$curl_opt = array(
	CURLOPT_POSTFIELDS => $xml,
	CURLOPT_RETURNTRANSFER => 1
);

$ch = curl_init( $url);
curl_setopt_array( $ch, $curl_opt);
$response = curl_exec($ch);
curl_close($ch);