开发者

Google OCR Api with OAuth 2

I try to upload image to google docs using code

I setup access_token and access_token_secret

$uri = 'https://docs.google.com/feeds/documents/private/full?ocr=true'; $newDocumentEntry = $client->uploadFile($f开发者_StackOverflow社区ileLocation, $fileName, $mimeType, $uri); but i receive exception

"The field ocr is not supported in this request version"

without "?ocr=true" upload is correct

is there any way to upload image with ocr ?


OCR only works with version 3 of the API. Have you tried POSTing to .../full?v=3&ocr=true?

http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#Versioning

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜