ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > PublicDomainVic

GingerTG - Custom command-line app for Telegra.ph (v0.1.0)

(1/2) > >>

publicdomain:
GingerTG

Custom command-line app for Telegra.ph


* ⬇️ Download @ DCmembers (Mouser's site, recommended)
* ⬇️ Download @ GirHubMade for c.gingerich from donationcoder.com.

Original thread: Windows command-line app for Telegra.ph

Release thread: GingerTG - Custom command-line app for Telegra.ph

Source code: GingerTG @ GitHub

Targets Microsoft .NET framework v4.5 (Native to Windows 8+)

Arguments

Create account:


* -s, --short-name
* -n, --author-name
* -u, --author-iurl
Create page:


* -k, --access-token
* -t, --title
* -n, --author-name
* -u, --author-iurl
* -c, --content
* -r, --return-content
Edit page:


* -k, --access-token
* -p, --path
* -t, --title
* -c, --content
* -n, --author-name
* -u, --author-iurl
* -r, --return-content
Get views:


* -p, --path
Notes:

v0.1.0


* Create account.
* Create post.
* Edit post.
* Get views (total count).
Day #99, Week #14 @ April 09, 2022

==========

Release sponsors:

* Jesse Reichler (A.K.A. Mouser from DonationCoder.com)
* Max P.
* Will you be our next supporter? :)
Support the creation of 52+ new public domain releases per year with your Donation via Paypal @ https://www.paypal.com/paypalme/victorvls or by becoming a Patron @ www.patreon.com/publicdomain.

Thanks & keep on rocking!

==========

Enjoy more free releases @ our website: https://publicdomain.is

publicdomain:
Stack is: Fluent, Telegraph.Net, LiteDB and Json.NET.

Requirements:

... a command-line app to access all of the telegra.ph functions available in the API here https://telegra.ph/api

Thank you!

[EDIT]

To make even more simple would be a way to create an account, post and edit pages.
-c.gingerich (May 17, 2021, 03:01 PM)
--- End quote ---


Shaping as:

-a, --action <API method>

===

Create account:

-a createAccount

-s, --short-name

[-n, --author-name]

[-u, --author-url]

===

Create page:

-a createPage [-s, --short-name]

[-k, --access-token]

-t, --title

[-n, --author-name]

[-u, --author-url]

-c, --content

[-r, --return-content]

===

Edit page:

-a editPage [-s, --short-name]

[-k, --access-token]

-p, --path

-t, --title

-c, --content

[-n, --author-name]

[-u, --author-url]

[-r, --return-content]

===

-l, --list

List all managed accounts in the database.

===

-d, --dump <file path>

Dumps all accounts to passed file.

===

"Short name" being used as account key to auto-fill optional parameters when not provided.

c.gingerich:
Thanks Vic!

publicdomain:
Thanks Vic!
-c.gingerich (April 04, 2022, 10:17 AM)
--- End quote ---

My pleasure Chris, the program creates accounts smoothly, first version supports both createPage and editPage with easy extensibility.

BTW Telegraph's post format seems quite "funky" (Node-based @ https://telegra.ph/api#Node).

What's your expectation here? Plain text or conversion? Thanks!

c.gingerich:
Vic,

I was just thinking plain text.

Navigation

[0] Message Index

[#] Next page

Go to full version