Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
github.com/cseeger-epages/i-doit-go-api
is an I-doit API client implementation written in GOLANG.
Its focused on simplicity to create easy writable code for your projects.
the package supports:
Other types of requests like
are not implemented yet (and maybe never will) but can easily be implemented using the goidoit.Request function there are some advanced examples of how to do this.
There is also a second repo i-doit-go-tools where you can find some more scripts for special use-cases that can be used as an even more advanced example :P.
If you already installed GO on your system and configured it properly than its simply:
go get github.com/virtomize/i-doit-go-api
If not follow these instructions
package main
import (
"fmt"
"github.com/virtomize/i-doit-go-api"
)
func main() {
// create api object
a, _ := goidoit.NewAPI("https://example.com/src/jsonrpc.php", "yourapikey")
// or login using X-RPC-Auth (recommended)
// a, _ := goidoit.NewLogin("https://example.com/src/jsonrpc.php", "yourapikey", "username", "password")
// search for sth like test
s, _ := a.Search("test")
// thats it
fmt.Println(s)
}
There are more advanced examples documented in the repo for common use cases.
You find the full code documentation here
This library uses mage for testing and coverage. After installing mage just run:
mage test
also code coverage in detail can be seen via browser by using
mage coverage
This project uses sematic versioning.
Thanks for your code inspirations!
Thank you for participating to this project. Please see our Contribution Guidlines for more information.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.