Page 1 of 3

Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Tue Jul 23, 2013 5:13 pm
by mikeflores2000

Where can I find a simple OAuth plugin I can use for my Twitter Search app?

My app returns no error and no search result despite following link:
http://docs.appery.io/tutorials/build...


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Tue Jul 23, 2013 5:36 pm
by Maryna Brodina

Hello! You would need to search for plugin online. Could you give us your public app link so we can take a look?


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Wed Jul 24, 2013 3:01 am
by mikeflores2000

Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Wed Jul 24, 2013 5:00 pm
by Maryna Brodina

Hello! Sorry for delay. There are JS errors when app loads:
Uncaught SyntaxError: Unexpected token files/views/assets/js/TwitterSearchJS.js:21
and
Uncaught SyntaxError: Unexpected number mobilescreen1.js:327

So you would need to debug your app http://docs.appery.io/documentation/a...


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Fri Jul 26, 2013 12:34 am
by mikeflores2000

I would like to be able to debug myself but how?
Why can't I single step through these uncaught syntax errors at my end?
This JS source provided to me by Appery.io

The last line is 21 and I question where is h1 initialized?
b64.charAt(h1)

I suspect o1 has no data in because data is null.

alert('Calling TwitSearchGlobal.beforeSearchTwit')
TwitSearchGlobal = {

bearerToken : "",

Code: Select all

  encodeBase64 : function ( data ) { 

// Encodes data with MIME base64
// + original by: Tyler Akins (http://rumkin.com)
// + improved by: Bayron Guevara

Code: Select all

      var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; 

var o1, o2, o3, h1, h2, h3, h4, bits, i=0, enc='';

do {
// pack three octets into four hexes

Code: Select all

o1 = data.charCodeAt(i++); 
o2 = data.charCodeAt(i++); 
o3 = data.charCodeAt(i++); 

LINE 21 bits = o1<18 & 0x3f;


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Fri Jul 26, 2013 5:05 pm
by Maryna Brodina

Hi, you would need to provide more details on how did you get this error and how to reproduce it. You should also know that debugging is outside the scope of our support.


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Fri Aug 02, 2013 4:05 am
by mikeflores2000

Marina -

You may want to touch base with your colleague Katya Yakusheva who is aware of
a bug reported 07-19-2013 before your reply to me on 07-26-2013.

Is bug still in progress of being fixed because link
http://docs.appery.io/tutorials/build...
is not found?

https://getsatisfaction.com/apperyio/...

bits = o1<< 16 | o2<18 & 0x3f; // correct but I still get the same errors:
Uncaught SyntaxError: Unexpected token TwitterSearchJS.js:20
Uncaught SyntaxError: Unexpected number

bits = o1<18 & 0x3f; // bug


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Fri Aug 02, 2013 5:50 am
by Maryna Brodina

Hello! We fixed tutorial. Here is correct link http://docs.appery.io/tutorials/build...


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Fri Aug 02, 2013 5:23 pm
by mikeflores2000

It appears appery.io is generating wrong code for mobilescreen1.js:
TwiiterSearchJS.js
bits = o1<<< 18 & 0x3f;
throws
Uncaught SyntaxError: Unexpected number mobilescreen1.js:326


Where can I find a simple OAuth plugin I can use for my Twitter Search app?

Posted: Fri Aug 02, 2013 5:26 pm
by mikeflores2000

It appears appery.io is generating wrong code for mobilescreen1.js:
mobilescreen1.js bits = o1 < 18 & 0x3f;
throws
Uncaught SyntaxError: Unexpected number mobilescreen1.js:326

TwiiterSearchJS.js has correct code