omglol-client-go

module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MPL-2.0

README

Tests GoDoc GitHub release (latest SemVer) GitHub go.mod Go version

omglol-client-go

API client library for omg.lol written in Go

Warning The omg.lol API is still in development, and endpoints are subject to change. This may cause the client to break unexpectedly.

Usage

To install this module:

go get github.com/ejstreet/omglol-client-go@latest

To import:

import (
  "github.com/ejstreet/omglol-client-go/omglol"
 )

Create a new client:

c, err := omglol.NewClient(email, api_key)

Use a method:

a, err := c.GetAccountInfo()

See test files for further examples.

Supported Features

This project is a work-in-progress, see the following table for supported features:

Resource Sub-Resource Method Supported
Account Info GET ✔️
Addresses GET ✔️
Name GET ✔️
POST ✔️
Sessions GET ✔️
DELETE ✔️
Settings GET ✔️
POST ✔️
Address Availability GET ✔️
Expiration GET ✔️
Info GET ✔️
Directory List GET ✔️
DNS ListRecords GET ✔️
FilterRecord* GET ✔️
Create POST ✔️
Update PATCH ✔️
Delete DELETE ✔️
Email Retrieve GET ✔️
Set POST ✔️
PURL List GET ✔️
Retrieve GET ✔️
Create POST ✔️
Delete DELETE ✔️
Paste List GET ✔️
Retrieve GET ✔️
Create POST ✔️
Delete DELETE ✔️

Note Features marked with a * are additional to what the API provides

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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