0

Is it possible to use the Watson API in a PHP Project?.

I'm Total a newbie, if anyone has experience or some sample code here I would be very thankful.

Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
adund cn
  • 39
  • 1
  • 4

1 Answers1

1

@Ruslam-Osmanov is right, you can use cURL to call most REST APIs. Here is an example of using that method with the Personality Insights services: https://developer.ibm.com/answers/questions/200245/how-to-use-php-curl-to-call-rest-api-personality-i.html

I am a developer evangelist with IBM Watson Developer Cloud.

Rich Edwards
  • 321
  • 1
  • 2
  • Out of Topic. i found node js template and successed to run on localhost, but the Vis-Rec API not working(detail "Unauthorized: Access is denied due to invalid credentials"). do you have experience to use watson without bluemix and how? Thanks – adund cn Apr 30 '16 at 02:54
  • You have to use Bluemix to provision credentials, but can run applications anywhere with Internet access. See this post for more and links to hiding credentials from end users: http://stackoverflow.com/questions/35952057/can-i-use-ibm-watson-services-without-bluemix/35952987#35952987 – Rich Edwards May 01 '16 at 12:53
  • @RichEdwards Please include all relevant details in the answer; link-only answers are not useful to this website. – Daedalus May 02 '16 at 08:21
  • [This project](https://github.com/darrynten/watson-personality-insights-php) is specifically for PHP and Watson Personality interactions! – darryn.ten Feb 20 '17 at 08:42