Skip to content

j3lte/wamclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Werk Aan De Muur - API

GitHub release (latest by date) NPM Version GitHub Release Date GitHub code size in bytes GitHub GitHub last commit GitHub issues Deno docs

Werk aan de Muur - API client for Deno/Node

This client is intended for limited use at the backend. It is not intended for use in the browser.

Inspired by the Wordpress Plugin

Table of Contents

Features

  • Request data from the Werk Aan De Muur API
  • Get artworks for a user
  • Get paginated results
  • Get artworks for a specific album

Installation

Deno

import { WAMClient } from 'https://deno.land/x/wamclient/mod.ts';

Node

import { WAMClient } from 'wamclient';

Example

import { WAMClient, Medium, Size } from 'https://deno.land/x/wamclient/mod.ts';

const artistID = 000000; // Your artist ID
const apiKey = "<api_key>"; // Your API key

const client = new WAMClient(artistID, apiKey);

const authenticated = await client.authenticationTest();

// Get all artworks
const artworks = await client.getArtworks();

// Get artworks for a specific album
const albumArtworks = await client.getArtworksByAlbumId(123456);

// Get paginated results
const paginatedArtworks = await client.getArtworksPage(1);

// Get a single artwork
const artwork = await client.getArtworkById(123456);

// Apply filters
const filteredArtworks = await client.getArtworks({
  medium: Medium.Canvas,
  size: Size.XLarge,
});

Development

  • Publish NPM module

License

MIT


"Buy Me A Coffee"

About

API client for Werk aan de Muur (Artheroes)

Resources

License

Stars

Watchers

Forks

Packages

No packages published