ffflorian / api-clients Goto Github PK
View Code? Open in Web Editor NEWAPI clients for various services
License: GNU General Public License v3.0
API clients for various services
License: GNU General Public License v3.0
Partial System Outage
should be Partially Degraded Service
Uncertain about the accuracy of 'major service outage', will check.
It would be nice if the API url can be accessed from the request injector. Usually the request injector can use this.apiClient
but the API client hides its options which also include the API url.
I am getting internal package error. I am using vue3
const Sp = new Statuspage('1zzpm59l36cj')
Sp.summary({
success: function(data) {
console.log('Data', data)
// adds the text description to the dropdown
// $('.color-description').text(data.status.description)
// appends the status indicator as a class name so we can use the right color for the status light thing
// $('.color-dot').addClass(data.status.indicator)
}
})
Hi @ffflorian!
Could you tell me the difference between your updown.io
client and @woubuc's node-updown
(which is recommended in the API docs) please? ๐ค
If they're about the same, maybe you guys could join forces? ๐ค
I've asked the same question in the other repo, see woubuc/node-updown#9
Hi,
I saw the license was changed from MIT to GPL-3 here, ba1fc4c. What was the reason?
Have you considered switching back to MIT? For Statuspage.io API? :) I'd like to use it but can't if it's under GPL-3. If not I still thank you for your hard work making these API clients!
The Axion client used in this client is fine, but it needs to have a change made to it.
In /statuspage.io/src/Endpoints.js it has an API call to the Statuspage API V1. This has now been removed and API V2 is the only one working. All V1 calls returns a 404 error. I went into the Endpoints file and ended up changing
const API_V1_BASE = 'api/v1'
to const API_V2_BASE = 'api/v2'
and replace all API_V1_BASE calls in this document to the new API_V2_BASE.
I wanted to update a dependency recently but turns out I can't since your packages only allow the usage of one specific version of each dependency.
I suggest you change this
"dependencies": {
"axios": "1.6.2",
"commander": "11.1.0"
},
to this
"dependencies": {
"axios": "^1.6.2",
"commander": "^11.1.0"
},
I suggest you fix this in all your packages so people can swiftly update dependencies in the case of a security vulnerability.
I'm trying to use the https://www.npmjs.com/package/npms.io client to search npms.io by a specific keyword and non-deprecated plugins: keywords:eleventy-plugin not:deprecated
If I was using the API directly, I'd use something like this:
https://api.npms.io/v2/search?q=keywords:eleventy-plugin+not:deprecated
I'm not sure how to do that w/ the NpmsIO client though. I tried this:
import { NpmsIO } from "npms.io";
const npmClient = new NpmsIO();
const plugins = await npmClient.api.search.searchPackage("keywords:eleventy-plugin not:deprecated", {size:250});
console.log(plugins);
โฆ but it always returns zero results: { total: 0, results: [] }
If I remove the encodeURIComponent()
from this line and just do q: query
in my local ./node_modules/ folder, then I start seeing results:
- q: encodeURIComponent(query)
+ q: query
{
total: 154,
results: [
{ package: [Object], score: [Object], searchScore: 0.0007207585 },
{ package: [Object], score: [Object], searchScore: 0.00066178717 },
...
]
}
tried to used boxex like this:
imgflip.api
.captionImage({
username: 'test',
password: 'test',
template_id: 289894455,
boxes:[
{
"text": "One does not simply",
"x": 10,
"y": 10,
"width": 548,
"height": 100,
"color": "#ffffff",
"outline_color": "#000000"
}
]
// ...
})
.then(response => {
//
console.log(response);
});
getting error response :
{
success: false,
error_message: 'Invalid box format. Each box in the boxes array must be an object containing the attributes text, x, y, etc.'
}
It crashes here:
Demo Code
import {AbsenceIO} from 'absence.io';
const absenceIO = new AbsenceIO({
apiKey: 'MY-KEY',
apiKeyId: 'MY-KEY-ID',
});
absenceIO.api.absence.retrieveAbsences().then(absences => console.log(absences));
Error
(node:15736) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of null
at Object.exports.generateNormalizedString (D:\dev\projects\bennyn\wire-absence-bot\node_modules\hawk\lib\crypto.js:73:35)
at Object.exports.calculateMac (D:\dev\projects\bennyn\wire-absence-bot\node_modules\hawk\lib\crypto.js:50:32)
at Object.exports.header (D:\dev\projects\bennyn\wire-absence-bot\node_modules\hawk\lib\client.js:109:24)
at D:\dev\projects\bennyn\wire-absence-bot\node_modules\absence.io\src\AbsenceIO.ts:35:38
(node:15736) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pro
mise which was not handled with .catch(). (rejection id: 1)
(node:15736) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-
zero exit code.
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.