ebc-2in2crc / pixela4go Goto Github PK
View Code? Open in Web Editor NEWPixela (https://pixe.la/) API client for Go.
License: MIT License
Pixela (https://pixe.la/) API client for Go.
License: MIT License
Support Pixela v1.27.0.
Support Pixela v1.26.0.
Support Pixela v1.26.1.
Support retries when an API call is rejected.
This function is a measure for the specification added in Pixela v1.25.0.
ref: a-know/Pixela#29
{"message":"Please retry this request〜
).{"message":"Please retry this request〜
), for example, network errors are not automatically retried.Note that this function is experimental. The behavior may change or remove.
The pixela4go will be able to support HTTP response status codes.
When you call the Pixe.la API using pixela4go and the API fails, if you know the HTTP response status code, you can find out whether the error is caused by the client or the server.
Result
struct will add StatusCode
field.
client := pixela.New("YOUR_NAME", "YOUR_TOKEN")
uci := &pixela.UserCreateInput{
AgreeTermsOfService: pixela.Bool(true),
NotMinor: pixela.Bool(true),
ThanksCode: pixela.String("thanks-code"),
}
result, err := client.User().CreateWithContext(context.Background(), uci)
if err != nil {
log.Fatal(err)
}
if result.IsSuccess == false {
log.Fatalf("message: %s, status code: %d\n", result.Message, result.StatusCode)
}
Do not use Travis-CI.
Introduce GitHub Actions Workflow.
For:
Support Pixela v1.28.0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.