Page 1 of 1

How to include external library in Server Code

Posted: Tue Aug 12, 2014 5:36 pm
by araskin3i

I would like to use the codeBird JS library from a REST API that I am developing. I uploaded the JS file into a JS library on the Server Code tab. I hit the test button and it indicated that there are NO syntax errors.

I then created a new REST API and specified the codeBird library as a dependency. However when I run the REST API I get an exception on the following line:

var aCallBird = new Codebird;

which is : Codebird is not defined

Any ideas what I am doing wrong?


How to include external library in Server Code

Posted: Tue Aug 12, 2014 6:45 pm
by Kateryna Grynko

Hi Alon,

You can add it as a library: http://devcenter.appery.io/documentat...


How to include external library in Server Code

Posted: Tue Aug 12, 2014 8:24 pm
by araskin3i

Thanks Katya. This is what I did but I still get the syntax error as described above.
Any other ideas?

Alon


How to include external library in Server Code

Posted: Tue Aug 12, 2014 9:00 pm
by Kateryna Grynko

Hi Alon,

Could you please show where you get the code? How do you add it, just copy the code?


How to include external library in Server Code

Posted: Tue Aug 12, 2014 9:04 pm
by araskin3i

How to include external library in Server Code

Posted: Wed Aug 13, 2014 4:47 pm
by araskin3i

Any updates on this?


How to include external library in Server Code

Posted: Wed Aug 13, 2014 6:01 pm
by Kateryna Grynko

Hi Alon,

Please remove these lines in the beginning:pre(function (undefined) {
"use strict";/preAnd this line in the end:pre})();/preThis works for us.


How to include external library in Server Code

Posted: Wed Aug 13, 2014 6:08 pm
by araskin3i

Works for me too. Thank you so much.