Login Sign Up
Enter Username
Enter Password
or
Enter Email Address
or
oEmbed Documentation

oEmbed Support for edocr documents

  • - Request type : HTTP GET
  • - Authorization : none
  • - URL : http://www.edocr.com/api/oembed
  • - Default response format : json

Quick example call

- http://www.edocr.com/api/oembed/?format=json&url=http://www.edocr.com/doc/1465/6-steps-acquire-new-customers-edocr-com

Query Parameters

  • - url (Required) : The URL to retrieve embedding information for
  • - format (optional) : xml, json

Response parameters

  • - version : The oEmbed version number.
  • - type : Type of oEmbed response.
  • - title : Title of the embed document.
  • - author_name : Author of the embed document.
  • - author_url : edocr profile page of the author of embed document.
  • - provider_name : Provider of the embed content, edocr.
  • - provider_url : URL of provider.
  • - html : This is the html embed code, which contains links to embed document.
  • - width : Width of the embed document.
  • - height : Height of the embed document.

Error Codes

  • - 404 Not Found : If URL is missing or doesn't point to an embeddable resource.
  • - 501 Not Implemented : If the format provided is not supported. Should be one of xml, json

Example

XML Request

- http://www.edocr.com/api/oembed/?format=xml&url=http://www.edocr.com/doc/1465/6-steps-acquire-new-customers-edocr-com

JSON Request

- http://www.edocr.com/api/oembed/?format=json&url=http://www.edocr.com/doc/1465/6-steps-acquire-new-customers-edocr-com

Example JSON Response

{

"version":"1.0",

"type":"rich",

"height":872,

"width":658,

"title":"6 steps to acquire new customers via edocr.com",

"provider_name":"edocr",

"provider_url":"http:\/\/edocr.com\/",

"author_name":"edocr",

"author_url":"http:\/\/www.edocr.com\/user\/edocr",

"html":"<iframe webkitAllowFullScreen mozallowfullscreen allowFullScreen width=\"658\" height=\"872\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http:\/\/www.edocr.com\/oembed\/?keyval=dfe854cf3f6e88145b8378a60b2d47735382ec7f\"><\/iframe>"

}

 
FOLLOW US ON
Privacy Policy | Terms & Conditions
 
© 2007 - 2014 All Rights Reserved