import { Client } from "https://deno.land/x/feoblog_client@v0.7.0/mod.ts";
A client to GET/PUT FeoBlog Items.
https://github.com/nfnitloop/feoblog https://github.com/NfNitLoop/feoblog/blob/develop/docs/data_format.md
This client is available publicly as part of https://deno.land/x/feoblog_client. That is a (mostly) copy of the Client class from https://github.com/NfNitLoop/feoblog/blob/develop/web-client/ts/client.ts
A client takes a base_url parameter and knows how to construct REST URLs based off of that. To communicate among 2+ servers, instantiate a client for each server.
Constructors
Methods
Download an attachment from a server, if it exists.
Warning: stores the attachment in memory.
An async stream over items on the site's home page.
Load an Item from the server, if it exists.
By default, validates the signature of the Item before returning it.
Like getItem, but returns the item bytes so that the signature remains valid over the (serialized) bytes.
Like getItem, but just gets the latest profile that a server knows about for a given user ID. The signature is returned in a header from the server. This function verifies that signature before returning the Item. We also verify that the Item has a Profile.
An async stream of all known replies to an item.
An async stream over a user's feed. (i.e.: content of those they follow, and themself)
An async stream over a users's Items.
After you putItem() an item that has Attachments, the server may allow you to upload the attachments (if they do not violate your quota)