Send an image url to an API

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
yan
Posts: 4
Joined: Mon Jan 19, 2015 3:26 pm

Send an image url to an API

Post by yan » Thu Mar 26, 2015 6:31 pm

Hello , I am trying to use an API OCR converts an image into text , the api works by method post and receives as parameter the image , language, and developer key , I was doing tests from LiveCode but can not find a way to send the image as such through this url . anyone know how to do ?, I put part of the documentation of the API , Greetings from Colombia
Attachments
Captura.PNG
1.PNG

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Send an image url to an API

Post by FourthWorld » Thu Mar 26, 2015 6:54 pm

Please do not make duplicate threads in multiple places for a single topic. Keeping a single thread in one place allows others to find and contribute to a conversation more easily.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Send an image url to an API

Post by Simon » Sun Mar 29, 2015 1:35 am

Hi yan,
I have posting the image and getting the correct values from http://api.ocrapiservice.com/1.0/rest/ocr working in liveCode.
The trouble is this isn't a beginners task. Do you know about things like httpHeaders?
I'll tell you one thing I found that was very helpful was this tool;
http://www.telerik.com/fiddler
Using that and Test Drive you can find out what ocrapiservice is looking for in a POST.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “Internet”