question

Upvotes
Accepted
75 1 3 5

Can options be set in News.js to obtain Global news for private cos? For eg. i want to search for related Global news for MyRepublic and have it downloaded through the app studio

eikoneikon-app-studionewsjavascript
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

You can use subscription.newsExpression (expression) to set expression for selecting news headlines that will be received from container. For example:

  var s = JET.News.create()
             .newsExpression("BOJP OR ABNNEW")            
             .onAppend(function (upd) { console.log(upd.h); })
             .onInsert(function (upd) { console.log(upd.h); })
             .start();

The above code will receive news headlines from ABN Newswire and Bank of Japan Announcements.

You can find valid expressions from filters in News Monitors application.


expressions.png (28.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea