DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Windows command-line app for Telegra.ph  (Read 29,900 times)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Windows command-line app for Telegra.ph
« on: May 17, 2021, 08:01 PM »
I have been trying to make one myself w/o any luck. I can use the API ok, but parsing json is kicking my butt. What I would like is 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. All the other things would be nice, but not needed.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Windows command-line app for Telegra.ph
« Reply #1 on: May 17, 2021, 08:22 PM »
What programming language have you tried?
You should use the best tool for the job:
Most suitable to process would be JS (Javascript), as that's what the first 2 letters of the word JSON come from... Node.js should be the way to go for a command-line tool.
Next choice up (assuming a Windows OS) should be C#/.NET as that makes it very easy using one of the JSON libraries (NewtonSoft comes to mind)
And the runner up would probably be Java, but there are some that don't like that (for probably the wrong reasons), where also plenty of libraries are available, org.json and Google GSON are popular choices.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Windows command-line app for Telegra.ph
« Reply #2 on: May 17, 2021, 08:31 PM »
The only language I really know is Visual Dialogscript, not a well known language. I'm afraid my brain is not as young as it used to be and learning another language is not really an option. I did try learning and using Autohotkey, but again not luck.

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Windows command-line app for Telegra.ph
« Reply #3 on: May 18, 2021, 02:55 AM »
@C.

Ath is right. I can do it cross-platform in either Node/Javascript or .NET/C# (your call).

Do bear in mind I’m doing “regular” work this week along with finishing several Public Domain proggies. If you aren’t in a rush, I’m totally in to assist! :)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Windows command-line app for Telegra.ph
« Reply #4 on: May 18, 2021, 05:29 AM »
I did try learning and using Autohotkey, but again not luck.
That is not the easiest one to start with because of its somewhat cryptic syntax; I've dabbled in AutoIt3, but AHK has been a real challenge and I've never really picked that one up (even though I've done quite a few programming languages).
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Windows command-line app for Telegra.ph
« Reply #5 on: May 18, 2021, 11:57 AM »
Thank you @publicdomain, that would be great! And no rush, .NET/C# will work nicely  :up:

@C.

Ath is right. I can do it cross-platform in either Node/Javascript or .NET/C# (your call).

Do bear in mind I’m doing “regular” work this week along with finishing several Public Domain proggies. If you aren’t in a rush, I’m totally in to assist! :)

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Windows command-line app for Telegra.ph
« Reply #6 on: May 18, 2021, 03:02 PM »
Thank you @publicdomain Vic

Feel free to call me Vic! :) We're all fellows here.

.NET/C# will work nicely

Traditional .exe it is :up: Got any name in mind for the repo/program?

Cheers!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Windows command-line app for Telegra.ph
« Reply #7 on: May 18, 2021, 03:49 PM »
Thanks Vic!  :)

As for a name, Something random and off the wall I was thinking is: Cherry Turtle. But since you are coding it, it's up to you.  :D

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Windows command-line app for Telegra.ph
« Reply #8 on: May 26, 2021, 08:09 PM »
My pleasure! :)

As for a name, Something random and off the wall I was thinking is: Cherry Turtle. But since you are coding it, it's up to you.  :D

GingerTG it is!  :up:

Code repo: https://github.com/publicdomain/gingertg

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Windows command-line app for Telegra.ph
« Reply #9 on: May 26, 2021, 09:11 PM »
My pleasure! :)

As for a name, Something random and off the wall I was thinking is: Cherry Turtle. But since you are coding it, it's up to you.  :D

GingerTG it is!  :up:

Code repo: https://github.com/publicdomain/gingertg

Sweet, Looking forward to it! :-)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Windows command-line app for Telegra.ph
« Reply #10 on: June 20, 2021, 03:52 PM »
Hey Vic. Just wanted to check in on the progress :)

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Windows command-line app for Telegra.ph
« Reply #11 on: June 21, 2021, 10:19 AM »
Hey Vic. Just wanted to check in on the progress :)

Hi C.! A humble first version should be seeing the light to close the month :up:

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • Participated in NANY Challenge Six Times
    • Coding Snacks
Re: Windows command-line app for Telegra.ph
« Reply #12 on: June 21, 2021, 12:31 PM »
Hey Vic. Just wanted to check in on the progress :)

Hi C.! A humble first version should be seeing the light to close the month :up:

OK, thanks for the update!

Original address: https://www.donationcoder.com/forum/index.php?topic=51408.0