Part 2 — In this article, we will try out their /tts service. In part 1 of this series we explored their /query service. Here, we will explore their/tts service which takes text and returns the generated speech (as an audio WAV file). I have created a folder “apiai” which will hold the Go source code “apiaifile.go”. … Continue reading Using Golang with Api.ai Artificial Intelligence service
The ‘Not Safe For Work’ (NSFW) model analyzes images and videos and returns probability scores on the likelihood that the image or video contains pornography. For those of you who don’t know what NSFW is, we’re talking about Not Safe For Work. R-rated content. Stuff that would probably get you fired if you were looking … Continue reading Use Go and Clarifai API to Recognize NSFW Images
In my previous blog post I have discussed API designing and versioning. Now I am going to build a simple algorithm to restrict API access based on requests per minute using redis Very often, as an API provider we need to control request traffic based on certain criteria, like account subscription, time interval or requests … Continue reading API Throttling on Requests Per Minute
Today, a web-portal that does not support APIs is not even considered a web portal! This post explains how we can implement Rails APIs in our application. It talks about API keys, API versioning and authentication techniques.
Most of us are aware that enabling API access for rails application is easy as Rails provides RESTful APIs by default. However, a little complexity arises when some responses are expected in xml format (maybe for some legacy system) and JSON format. Complexity increases when these API calls need authentication. The initial obvious thought that … Continue reading Designing Rails API using Rabl and Devise
Command to download/copy rails api to work locally(offline) mode.wget -mk http://www.api.rubyonrails.orgFor more information click
Follow 10 simple steps in order to use myspace sdk api1. Remove all your previous gems installed+ gem uninstall myspace2. Checkout sample source codesvn checkout http://myspaceid-ruby-sdk.googlecode.com/svn/trunk/ myspacesdk3. cd myspacesdk/samples/rails/sample4. Modify config/database.yml accordinglydevelopment:adapter: mysqldatabase: sample_developmentpassword: abcdpool: 5timeout: 50005. Download http://myspaceid-ruby-sdk.googlecode.com/files/myspaceid-sdk-0.1.11.gem6. gem install --local ~/Desktop/myspaceid-sdk-0.1.11.gem i.e.PATH_TO_GEM7. Above command supposed to give you following error otherwise skip to … Continue reading 10 steps to get start with MySpace Ruby SDK