Skip to content

MATHEESHA2/telegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegraph

Telegraph API Golang

telegraph-tokenTelegraph API

APIs has achieved


  • CreatePage

Getting Started


  1. Download
go get -u github.com/DARKEMPIRESL/telegraph
  1. test.go
package main

imoprt "github.com/DARKEMPIRESL/telegraph"

func main(){
  page := &telegraph.Page{
    AccessToken: "......<telegraph-token>......",
		AuthorURL:   "https://github.com/DARKEMPIRESL/telegraph",
		AuthorName:  "telegraph-go",
    Title: 			 "Title here",
    Data:				 "<h1>Put html strings here.</h1>",
	}
  
  link, err := page.CreatePage()
	if err != nil {
    fmt.Println("Create Page Failed: ", err)
  }else{
    fmt.Println(link) 
  }
}

Packages

No packages published

Contributors 2

  •  
  •  

Languages