go-telegraph

module
v0.0.0-...-83ac00d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT

README

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)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL