Search found 2906 matches
by support
Sat Jul 29, 2017 2:17 pm
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 2419

Re: Generating few channel with one plgin

new = an item has been received since you last opened the channel (i.e. when you open the channel, items will go from "new" to "unread") read = you have clicked on an item's link unread = you have not clicked on an item's link Note that you can control an item's read/unread status (right-click in th...
by support
Sat Jul 29, 2017 6:56 am
Forum: Awasu - Extensions
Topic: Generating few channel with one plgin
Replies: 27
Views: 2419

Re: Generating few channel with one plgin

It should work, give it a go :) For a quick test, you can save the generated output to a file, then create a channel that "subscribes" to that file (choose "Read from a file" in the Channel Wizard). You don't even have to create a channel, just go to the second page of the Channel Wizard, click on "...
by support
Thu Jul 27, 2017 10:40 pm
Forum: Awasu - Extensions
Topic: How create report by API?
Replies: 1
Views: 381

Re: How create report by API?

You have to send an HTTP POST request; if you embed the parameters in the URL, it will be sent as an HTTP GET . For example: import urllib.request data = b"""<channelReport> <name> My New Report </name> <dataSource type="channelFilter"> <channelFilterName> All </channelFilterName> </dataSource> </ch...
by support
Thu Jul 27, 2017 1:08 pm
Forum: Awasu - General Discussion
Topic: How get API unread articles from channel as JSON
Replies: 6
Views: 1121

Re: How get API unread articles from channel as JSON

Give this a go: { {%REPEAT% Channels-IfGroupingItems insert=","} "{%CHANNEL-METADATA% name}": [ {%REPEAT% FeedItems insert=","} { "id": "{%ITEM-METADATA% AwasuId}", "title": "{%ITEM-METADATA% name!}", "published": "{%ITEM-METADATA% timestamp}", "url": "{%ITEM-METADATA% url}", "state": "{%ITEM-STATE%...
by support
Thu Jul 27, 2017 10:21 am
Forum: Awasu - General Discussion
Topic: How get API unread articles from channel as JSON
Replies: 6
Views: 1121

Re: How get API unread articles from channel as JSON

Error 1 . if title has ' " ' fx. The template parameter needs to be quoted in the template i.e. "title": "{%ITEM-METADATA% name!}", If the substituted value has quotes, Awasu will escape them for you. Note that the template output file must have a .JSON extension, so that Awasu knows it's generatin...
by support
Wed Jul 26, 2017 10:43 pm
Forum: Awasu - General Discussion
Topic: How get API unread articles from channel as JSON
Replies: 6
Views: 1121

Re: How get API unread articles from channel as JSON

{%REPEAT%} has a parameter that lets you insert a string between each repeated item (precisely for this reason :| ) e.g. {%REPEAT% FeedItems insert=","} will insert the comma in-between each feed item, but not after the last one.
by support
Tue Jul 25, 2017 11:45 am
Forum: Awasu - Feature Requests
Topic: Return channel as JSON and XML
Replies: 5
Views: 1092

Re: Return channel as JSON and XML

Your sugestion about DataRAM is versy intersting. I'll think about it. If you use the DataRAM feature to save the contents of the RAM disk to a file, make sure Awasu is not running when you do it. Otherwise, you might save files while Awasu is updating them i.e. they will be saved to disk in an inc...
by support
Sun Jul 23, 2017 1:13 am
Forum: Awasu - Feature Requests
Topic: Return channel as JSON and XML
Replies: 5
Views: 1092

Re: Return channel as JSON and XML

Why [not]one API call? Because Awasu has been written over a period of many years, and things that might make sense now maybe didn't back then :-) The idea was always to let information be extracted out of Awasu based on content , not on structure e.g. "what stories are there about subject X within...
by support
Sat Jul 22, 2017 1:11 pm
Forum: Awasu - Feature Requests
Topic: Return channel as JSON and XML
Replies: 5
Views: 1092

Re: Return channel as JSON and XML

There are several ways you can get this information, depending on exactly what you want, and how you want to do it. Reports can return content in any format, including JSON and XML (e.g. see MetaChannel.template ), so you could create a report that includes the channels you want. This would be reall...
by support
Fri Jul 21, 2017 6:42 am
Forum: Awasu - Extensions
Topic: How get channel lis in specific report?
Replies: 2
Views: 497

Re: How get channel lis in specific report?

BTW, this can get complicated, since reports can be configured to use channels in a folder (and only that folder), or channels in a folder or any sub-folder. I would build 2 dictionaries, one that records what folders each channel is in, and another one that records all the parent folders of those f...
by support
Fri Jul 21, 2017 6:25 am
Forum: Awasu - Extensions
Topic: How get channel lis in specific report?
Replies: 2
Views: 497

Re: How get channel lis in specific report?

First, get the Awasu folders using either $/channels/folders/list (flat structure) or $/channels/folders/tree (tree structure). To find out what folders a channel is in, call $/channels/list , with a verbose=1 parameter. Awasu will then return all the information about each channel, including what f...
by support
Wed Jul 19, 2017 8:23 am
Forum: Awasu - Extensions
Topic: How to use the API to check if an item has been read
Replies: 3
Views: 562

Re: How to use the API to check if an item has been read

I've sent you a new build, and $/feedItems/get will now return each item's state (new|unread|read).

This API call can take multiple item ID's (comma-separated), and it will be much quicker to do them all in one go, rather than calling the API for each individual item.
by support
Fri Jul 14, 2017 2:21 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 4199

Re: [Plugin] How add, use, modified report HTML file

I wrote up a tutorial on how character sets and encoding work here.

HTH :)
by support
Fri Jul 14, 2017 1:29 am
Forum: Awasu - Extensions
Topic: How to use the API to check if an item has been read
Replies: 3
Views: 562

Re: How to use the API to check if an item has been read

There isn't an API call to get the read/unread status of an item, but you could do it like this: Use $/search/query to run the query (as you did above). Get each item's ID ( code[item_no]["id"] ). Get the channel's summary page (HTML) using $/channels/get (but see below). Look for a <div> with a cla...
by support
Sat Jul 08, 2017 11:34 am
Forum: Awasu - General Discussion
Topic: [Plugin] How add, use, modified report HTML file
Replies: 14
Views: 4199

Re: [Plugin] How add, use, modified report HTML file

I want HTML output when I run repport from Awasu This is what happens anyway, so nothing needed here. and JSON data when I call a script. I want a posibility select specified channels by IDs, get unread articles from them and next process in Python. Call $/channels/get to get a channel's summary pa...

Go to advanced search