Robert Manders
Posts: 0
Joined: Thu Jul 11, 2013 9:30 pm

Problem with Javascript in new Twitter tutorial

Just an FYI in the new Twitter tutorial (http://docs.appery.io/tutorials/build...):

In the Mapping the OAuth2 Service section, the Javascript that is provided is different that the Javascript that is used in a screenshot a little bit ways down. The screenshot JS works, but the the copy-able JS does not work.

This tutorial is awesome though.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem with Javascript in new Twitter tutorial

Hi Robert,

Thank you for reporting this!
Could you please post here what is different?

Robert Manders
Posts: 0
Joined: Thu Jul 11, 2013 9:30 pm

Problem with Javascript in new Twitter tutorial

This section:

bits = o1<18 & 0x3f;
h2 = bits12 & 0x3f;
h3 = bits6 & 0x3f;
h4 = bits & 0x3f;

looks like this in the screenshot:

bits = o1<< 16 | o2<18 & 0x3f;
h2 = bits12 & 0x3f;
h3 = bits6 & 0x3f;
h4 = bits & 0x3f;

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem with Javascript in new Twitter tutorial

Thank you, we'll correct this.

Return to “Issues”