https://github.com/olegchuev/go-telegraph
Telegraph API wrapper | Telegra.ph
https://github.com/olegchuev/go-telegraph
golang telegraph telegraph-api wrapper-api
Last synced: 3 months ago
JSON representation
Telegraph API wrapper | Telegra.ph
- Host: GitHub
- URL: https://github.com/olegchuev/go-telegraph
- Owner: OlegChuev
- License: mit
- Created: 2024-05-10T07:31:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T12:51:29.000Z (about 1 year ago)
- Last Synced: 2025-01-02T14:21:43.321Z (5 months ago)
- Topics: golang, telegraph, telegraph-api, wrapper-api
- Language: Go
- Homepage: https://pkg.go.dev/github.com/OlegChuev/go-telegraph
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegra.ph Go-lang API Client
## Introduction
This Go-lang API client provides a convenient way to interact with the [Telegra.ph](https://telegra.ph) service programmatically. [Telegra.ph](https://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](https://telegra.ph/api#Node)
## Installation
To use this API client in your Go project, you can simply install it using `go get`:
```bash
go get github.com/OlegChuev/go-telegraph
```## Usage
```go
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(¶ms)
```