Skip to content

OlegChuev/go-telegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegra.ph Go-lang API Client

Introduction

This Go-lang API client provides a convenient way to interact with the Telegra.ph service programmatically. Telegra.ph is a minimalist publishing tool that allows users to create articles with rich formatting and no sign-up required.

Telegra.ph's API docs are located here: API Docs

Installation

To use this API client in your Go project, you can simply install it using go get:

  go get github.com/OlegChuev/go-telegraph

Usage

  import telegraph "github.com/OlegChuev/go-telegraph/api/endpoints"

  tc := telegraph.NewClient()

  params := telegraph.CreateAccountParams{
    ShortName: "John Doe",
    AuthorName: "John Doe",
    AuthorUrl: "@my_url",
  }

  account, err := tc.CreateAccount(&params)