araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

How to include external library in Server Code

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?

araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

How to include external library in Server Code

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

Alon

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

How to include external library in Server Code

Hi Alon,

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

araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

How to include external library in Server Code

Any updates on this?

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

How to include external library in Server Code

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.

araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

How to include external library in Server Code

Works for me too. Thank you so much.

Return to “Issues”