Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Unable to access rest service of bioportal

Trish Whetzel whetzel at stanford.edu
Fri Dec 28 11:35:45 PST 2012


Hi Ravi, 

When I added the -v parameter for more verbose output I noticed that the call was truncated before the first '&' and then tried the call escaping these characters as below which did return a response:
curl http://rest.bioontology.org/bioportal/search?query=fore\&ontologyids=1125\&apikey=YourAPIKey

Best, 
Trish 


Trish Whetzel, PhD
Outreach Coordinator
The National Center for Biomedical Ontology
Ph: 650-721-2378
http://www.bioontology.org

"Like" NCBO on Facebook: http://on.fb.me/bioontology

Follow NCBO on Twitter: http://twitter.com/#!/bioontology

Join in Discussions on LinkedIn: http://linkd.in/ncbo-group



On Dec 28, 2012, at 7:20 AM, Ravi Teja Lokineni wrote:

> Looping in our dev team in CC.
> 
> 
> On Fri, Dec 28, 2012 at 8:48 PM, Ravi Teja Lokineni <raviteja.lokineni at india.semanticbits.com> wrote:
> Hi,
> 
> I have created and account with this email and while trying to access the url: http://rest.bioontology.org/bioportal/search?query=fore&ontologyids=1125&apikey=<api-key>
> 
> Via browser it's working fine and via curl command it's showing me the response below, can someone please assist me:
> 
> I get the response:
> <?xml version="1.0" encoding="UTF-8"?>
> <errorStatus>
>   <accessedResource>/bioportal/search</accessedResource>
>   <accessDate>2012-12-28 07:00:33.725 PST</accessDate>
>   <shortMessage>Forbidden</shortMessage>
>   <longMessage>A valid API key is required to call REST services. Please visit http://bioportal.bioontology.org/account to get your API key.</longMessage>
>   <errorCode>403</errorCode>
> </errorStatus>
> 
> 
> -- 
> Ravi Teja Lokineni | Software Engineer
> SemanticBits India Pvt. Ltd.
> 
> E: raviteja.lokineni at india.semanticbits.com
> 
> 
> 
> 
> 
> 
> -- 
> Ravi Teja Lokineni | Software Engineer
> SemanticBits India Pvt. Ltd.
> 
> M: +919848657435
> E: raviteja.lokineni at india.semanticbits.com
> 
> 
> 
> _______________________________________________
> bioontology-support mailing list
> bioontology-support at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/bioontology-support


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20121228/4b7fbaff/attachment-0001.html>


More information about the bioontology-support mailing list