@jesse0michael/fetcher
v1.15.1
Published
OpenAPI client for @jesse0michael/fetcher
Readme
@jesse0michael/[email protected]
A TypeScript SDK client for the fetcher-ho4joes5va-uw.a.run.app API.
Usage
First, install the SDK from npm.
npm install @jesse0michael/fetcher --saveNext, try it out.
import {
Configuration,
DefaultApi,
} from '@jesse0michael/fetcher';
import type { GetFeedRequest } from '@jesse0michael/fetcher';
async function example() {
console.log("🚀 Testing @jesse0michael/fetcher SDK...");
const api = new DefaultApi();
const body = {
// number | twitterID (optional)
twitterID: 789,
// number | instagramID (optional)
instagramID: 789,
// string | bloggerID (optional)
bloggerID: bloggerID_example,
// string | soundcloudID (optional)
soundcloudID: soundcloudID_example,
// string | swarmID (optional)
swarmID: swarmID_example,
// string | deviantartID (optional)
deviantartID: deviantartID_example,
// string | untappdID (optional)
untappdID: untappdID_example,
// string | blueskyID (optional)
blueskyID: blueskyID_example,
// string | youtubeID (optional)
youtubeID: youtubeID_example,
} satisfies GetFeedRequest;
try {
const data = await api.getFeed(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Documentation
API Endpoints
All URIs are relative to https://fetcher-ho4joes5va-uw.a.run.app
| Class | Method | HTTP request | Description | ----- | ------ | ------------ | ------------- DefaultApi | getFeed | GET /feed | Get feed DefaultApi | proxy | GET /proxy | Proxy url
Models
Authorization
Endpoints do not require authorization.
About
This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:
- API version:
1.2.0 - Package version:
1.2.0 - Generator version:
7.21.0-SNAPSHOT - Build package:
org.openapitools.codegen.languages.TypeScriptFetchClientCodegen
The generated npm module supports the following:
- Environments
- Node.js
- Webpack
- Browserify
- Language levels
- ES5 - you must have a Promises/A+ library installed
- ES6
- Module systems
- CommonJS
- ES6 module system
Development
Building
To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:
npm install
npm run buildPublishing
Once you've built the package, you can publish it to npm:
npm publish