Querying Nitter instances.
This commit is contained in:
parent
ae92892504
commit
d6824d0c97
0
Socialmetrica.package/Nitter.class/README.md
Normal file
0
Socialmetrica.package/Nitter.class/README.md
Normal file
6
Socialmetrica.package/Nitter.class/class/instanceRows.st
Normal file
6
Socialmetrica.package/Nitter.class/class/instanceRows.st
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
accessing
|
||||||
|
instanceRows
|
||||||
|
^ (self instances at: 'hosts') collect: [:rawRow | | newRow |
|
||||||
|
newRow := OrderedCollection new.
|
||||||
|
newRow add: (rawRow at: 'url')
|
||||||
|
].
|
4
Socialmetrica.package/Nitter.class/class/instances.st
Normal file
4
Socialmetrica.package/Nitter.class/class/instances.st
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
accessing
|
||||||
|
instances
|
||||||
|
|
||||||
|
^ STONJSON fromString: 'https://status.d420.de/api/v1/instances' asUrl retrieveContents
|
@ -0,0 +1,10 @@
|
|||||||
|
accessing
|
||||||
|
viewInstancesFor: aView
|
||||||
|
<gtView>
|
||||||
|
| columnedList |
|
||||||
|
self instances isEmptyOrNil ifTrue: [ ^ aView empty].
|
||||||
|
columnedList := aView columnedList
|
||||||
|
title: 'Instances';
|
||||||
|
items: [ self instanceRows ];
|
||||||
|
priority: 80.
|
||||||
|
^ columnedList
|
11
Socialmetrica.package/Nitter.class/properties.json
Normal file
11
Socialmetrica.package/Nitter.class/properties.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"commentStamp" : "",
|
||||||
|
"super" : "Object",
|
||||||
|
"category" : "Socialmetrica",
|
||||||
|
"classinstvars" : [ ],
|
||||||
|
"pools" : [ ],
|
||||||
|
"classvars" : [ ],
|
||||||
|
"instvars" : [ ],
|
||||||
|
"name" : "Nitter",
|
||||||
|
"type" : "normal"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user