Disable Click To Read only in mobile through API calls

I am uploading magazines through Yumpu  API.
I want to get embed code that disable CLICK TO READ only on mobile devises .

It should appear on other devises.

 

 

Yumpu User Asked on March 22, 2018 in Embed.
Add Comment
4 Answer(s)

I have the same issue too.

Is there a way to display the Full screen option only for desktop not for iPad or Mobile?

In my website the PDFs are protected so the settings are enabled only to display the PDF inside my website. When the users click the Click to Read button in desktop it opens the full screen. But for the mobile/ipad, it redirects the users to Yumpu and not showing the PDF because of the above setting I have.

Can you provide the answer for this?

Thanks.

Yumpu User Answered on March 23, 2018.
Add Comment

1. I have logged in to yumpu backend and create a embed code for a document.
2. under BUTTON CLICK TO READ heading.

RE: Disable Click To Read only in mobile through API calls


I checked the parameter “Button (mobile)” to YES
and get embed id and checked in here: https://developers.yumpu.com/embed/embedGet.html
we can see a return value “player_c2r_mobile”: 1,

Then I changed the parameter Button (mobile)  to  NO
and get embed id and checked in here: https://developers.yumpu.com/embed/embedGet.html
we can see a return value “player_c2r_mobile”: 2,

3. So I guess if we pass 2 as value of “player_c2r_mobile” when creating a embed it will work as we want.
(https://developers.yumpu.com/embed/embedPost.html)

4. So I created a embed code passing parameter like below using EMBED POST API.
$data = array(
‘document_id’ => $document_id,
‘type’ => 1,
‘player_c2r_mobile’ => 2
);
$postEmbed = $yumpu->postEmbed($data);

Then I have stored the embed code id return above.

Then it returned embed code that I wanted ( show click to read on desktop view and not show in mobile)
when getting the embed code using above embed code ID

Yumpu User Answered on April 2, 2018.
Add Comment

Thanks

Yumpu User Answered on April 3, 2018.
Add Comment

Hello,

all options for the API can be found on https://developers.yumpu.com

Best Regards,

Linus Weiss

Yumpu Support Answered on March 22, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.