import (
"github.com/yellowglasses20/go-scrapbox"
"fmt"
)
func main() {
// Create scprapbox client
// Please set the project name you want to get in "help-jp"
client, _ := qiita.NewClient("help-jp")
// Fetch pagelist and print them
items, _, _ := client.PageList(&ListOptions{Skip: 0, Limit: 1})
fmt.Println(items)
// Fetch page title and print them
items, _, _ := client.PageTitle("API")
fmt.Println(items)
// Fetch page text and print them
body, _, _ := client.PageText("API")
fmt.Printf("%s", body)
// Fetch page icon
bin, _, _ := client.PageIcon("API")
}
Go library for accessing the Scrapbox API https://scrapbox.io/help-jp/API
License
yellowglasses20/go-scrapbox
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Go library for accessing the Scrapbox API https://scrapbox.io/help-jp/API
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published