oEmbed response changes for generating slide image URLs

391 views
Skip to first unread message

Jai Pandya

unread,
Apr 3, 2012, 2:00:47 AM4/3/12
to SlideShare Developers
Hello,

We made some significant changes in our conversion stack in the last few months. As a side effect, it has broken some client applications using oEmbed to generate slide image URLs. If you are using slide-image-baseurl and slide-image-baseurl-suffix fields of oEmbed response, you need to make some required changes in your application logic. Going forward, you'll find a new field named as conversion-version in the oEmbed response. Given below is how you can use it in your logic:

for i in total-slides do
  if conversion-version == 2  
    url_slide[i] = slide-image-baseurl + i + slide-image-baseurl-suffix
  else
    url_slide[i] = slide-image-baseurl + '-slide-' + i + slide-image-baseurl-suffix
  end

end

We are soon going to update all the slideshows to the version 2 in about a month's time. Then you'll be able to do away with the else part of the application logic. I'll update the group with new changes.

-Jai Pandya,
SlideShare

Hideki Hayashi

unread,
Apr 15, 2012, 2:18:03 AM4/15/12
to slideshare...@googlegroups.com

Jai Pandya

unread,
Apr 15, 2012, 4:02:55 AM4/15/12
to Hideki Hayashi, slideshare...@googlegroups.com
Hello Hideki,

Thanks for reporting the bug. I'll update the thread whenever it is resolved.

-Jai Pandya,
Slideshare

--
You received this message because you are subscribed to the Google Groups "SlideShare Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/slideshare-developers/-/mFSF5O9DNmIJ.
To post to this group, send email to slideshare...@googlegroups.com.
To unsubscribe from this group, send email to slideshare-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/slideshare-developers?hl=en.

Jai Pandya

unread,
Apr 16, 2012, 6:29:16 AM4/16/12
to Hideki Hayashi, slideshare...@googlegroups.com
Hideki,
 
The issue has been resolved. The URL is working fine now. Please let us know if you are still facing any issues.

Thanks

-Jai Pandya,
SlideShare

Hideki Hayashi

unread,
Apr 16, 2012, 8:38:32 PM4/16/12
to Jai Pandya, slideshare...@googlegroups.com
Hello,

Thanks for resolving the issue.

I found one more issue.

http://www.slideshare.net/api/oembed/2?url=http://www.slideshare.net/hayatomizuno/jquery-7665168
---
slide_image_baseurl:
"http://images.slidesharecdn.com/random-110418105132-phpapp02"
conversion_version: 1
slide_image_baseurl_suffix: "-768.jpg"
---
One of these slide image urls should be
http://images.slidesharecdn.com/random-110418105132-phpapp02-slide-1-768.jpg
But I can't access this url.

Thanks,
Hideki Hayashi


2012年4月16日19:29 Jai Pandya <jaip...@gmail.com>:

Jai Pandya

unread,
Apr 19, 2012, 2:18:25 PM4/19/12
to Hideki Hayashi, slideshare...@googlegroups.com
Hello,

The issue reported has been fixed. You can call the oEmbed endpoint again to get the updated prefix and suffix codes.

-Jai Pandya,
SlideShare

Guilherme Vinicius Moreira

unread,
Jun 18, 2012, 10:54:20 PM6/18/12
to slideshare...@googlegroups.com, Hideki Hayashi
Hello guys,

I'm trying use the oEmbed api to get single images, but I always get a "Access Denied".

That's the URL I'm using:
Result:
{}

Then I build a URL like this:

and as a result, Im getting this XML:

<Error>
<Code>
AccessDenied
</Code>
<Message>
Access Denied
</Message>
<RequestId>
C098126A2C0E4DBB
</RequestId>
<HostId>
Y87zfUwZwsobQbd1KZMankjII1aDnEUTEAlR3ChcbVrQxIp0+bxQAIx8tuLhC/i+
</HostId>
</Error>

Is that a normal error ? or I have to pass others params that I'm missing here ?

Thanks in advance.

>>> To unsubscribe from this group, send email to

lucas renan

unread,
Jun 29, 2012, 3:34:29 PM6/29/12
to slideshare...@googlegroups.com, Hideki Hayashi
guys,

same error here, I hope you can help us :)

thanks.

Jai Pandya

unread,
Jul 7, 2012, 2:27:49 AM7/7/12
to lucas renan, slideshare...@googlegroups.com, Hideki Hayashi
Hi,

The error should have been fixed by now. Let me know if you are still receiving any error.

-Jai Pandya,
SlideShare

To view this discussion on the web visit https://groups.google.com/d/msg/slideshare-developers/-/Qew3HHlXrx8J.

To post to this group, send email to slideshare...@googlegroups.com.
To unsubscribe from this group, send email to slideshare-devel...@googlegroups.com.

Akash Agrawal

unread,
Sep 4, 2012, 6:45:47 AM9/4/12
to slideshare...@googlegroups.com
Hi All,

As Jai discussed earlier, we have updated almost all the slideshows to the version 2. Please generate image url in the way Jai suggested to avoid any problem with your application.

for i in total-slides do
  if conversion-version == 2  
    url_slide[i] = slide-image-baseurl + i + slide-image-baseurl-suffix
  else
    url_slide[i] = slide-image-baseurl + '-slide-' + i + slide-image-baseurl-suffix
  end
end

Thanks,
Akash Agrawal
Slideshare

Matt

unread,
Nov 13, 2012, 10:08:08 PM11/13/12
to slideshare...@googlegroups.com
This is exactly how I am accessing the images, but getting "Access Denied" every time. Has the method of accessing this changed?

example:

slideinfo:{

    "author_name" = "Buffy Hamilton";

    "author_url" = "http://www.slideshare.net/buffyjhamilton";

    "conversion_version" = 2;

    height = 355;

    html = "<iframe src=\"http://www.slideshare.net/slideshow/embed_code/15129865\" width=\"427\" height=\"356\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px\" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe> <div style=\"margin-bottom:5px\"> <strong> <a href=\"http://www.slideshare.net/buffyjhamilton/participatory-librarianship-shaping-conversations-to-advocate-the-impact-of-our-academic-libraries-academic-library-association-of-ohio-alao-38th-annual-conference\" title=\"Participatory Librarianship Shaping Conversations to Advocate the Impact of Our Academic Libraries, Academic Library Association of Ohio (ALAO) 38th Annual Conference\" target=\"_blank\">Participatory Librarianship Shaping Conversations to Advocate the Impact of Our Academic Libraries, Academic Library Association of Ohio (ALAO) 38th Annual Conference</a> </strong> from <strong><a href=\"http://www.slideshare.net/buffyjhamilton\" target=\"_blank\">Buffy Hamilton</a></strong> </div>";

    "provider_name" = SlideShare;

    "provider_url" = "http://www.slideshare.net";

    "slide_image_baseurl" = "http://image.slidesharecdn.com/participatorylibrarianshipshapingconversationstoadvocatetheimpactofouracademiclibrariesalao2012-121111192742-phpapp02/85/slide-";

    "slide_image_baseurl_suffix" = "-728.jpg";

    "slideshow_id" = 15129865;

    thumbnail = "http://cdn.slidesharecdn.com/ss_thumbnails/participatorylibrarianshipshapingconversationstoadvocatetheimpactofouracademiclibrariesalao2012-121111192742-phpapp02-thumbnail.jpg?1352843851";

    "thumbnail_height" = 128;

    "thumbnail_width" = 170;

    title = "Participatory Librarianship Shaping Conversations to Advocate the Impact of Our Academic Libraries, Academic Library Association of Ohio (ALAO) 38th Annual Conference";

    "total_slides" = 68;

    type = rich;

    version = "1.0";

    "version_no" = 1352843851;

    width = 425;

}

Reply all
Reply to author
Forward
0 new messages