Forked from hubgit/elsevier-open-miner-service.php
Created
February 20, 2012 15:16
Revisions
-
hubgit revised this gist
Feb 20, 2012 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ <?php $params = array( 'client' => 'lipids', // or 'locus', for Arabidopis 'app' => 'lipids', // or 'locus', for Arabidopis 'mimetype' => 'text/html', 'contents' => file_get_contents('article.html'),// read the article HTML from a separate file ); @@ -18,4 +18,4 @@ )); $response = curl_exec($curl); print_r($response); -
hubgit created this gist
Feb 20, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <?php $params = array( 'client' => 'lipids', 'app' => 'lipids', 'mimetype' => 'text/html', 'contents' => file_get_contents('article.html'),// read the article HTML from a separate file ); $curl = curl_init('http://tryit.elsevier.com/oms/OpenMinerService'); curl_setopt_array($curl, array( //CURLOPT_VERBOSE => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($params), CURLOPT_USERPWD => 'OMS:Op3nM1n3rS3rv1c3', )); $response = curl_exec($curl); print_r($response);