New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

coloring-pages-api

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coloring-pages-api

API wrapper for ColoringPagesDesign coloring page generation service

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source
Coloring Pages Design API

ColoringPagesDesign API JavaScript Client

You can create printable coloring pages for kids and adults.

Getting Started

1. Create an Account

  • Visit ColoringPagesDesign.com
  • Sign up for a new account
  • Access the Developer Portal either:
    • From the account dropdown menu → "Developers"
    • Or directly at /developers
  • Generate your API key from the developer dashboard

2. Installation

bash npm install coloringpages-api

or yarn add coloringpages-api

3. Basic Usage

import ColoringPagesAPI from 'coloringpages-api';
// Initialize the client
const api = new ColoringPagesAPI('YOUR_API_KEY');
// Request coloring page creation
const coloringPage = await api.createColoringPage('SUBJECT HERE', 'STYLE HERE', 'COMPLEXITY HERE', 'VISIBILITY HERE');
console.log('Result coloring page: ', coloringPage.imageUrl);
console.log('Is image safe: ', coloringPage.isImageSafe)

API Access Levels

Free Tier

  • Access to basic API endpoints
  • Rate limited/throttled requests
  • Perfect for testing and small projects
  • Watermark

Paid Tier

  • Unlimited API requests
  • No rate limiting
  • No watermark

Rate Limits

TierRequests/minuteDaily Limit
Free10100
PaidUnlimitedUnlimited

Advanced Usage and Error Handling

try {
    const api = new ColoringPagesAPI('YOUR_API_KEY');
    const subject = 'butterfly'; // Whatever subject you want
    const style = 'pixel-art' // 'figurine', 'pixel-art', 'anime'
    const complexity = 'easy'; // 'easy', 'hard'
    const visibility = 'public'; // 'public', 'private'
    const coloringPage = await api.createColoringPage(subject, style, complexity, visibility);
    console.log('Result coloring page: ', coloringPage.imageUrl);
    console.log('Is image safe: ', coloringPage.isImageSafe)
} catch (error) {
    if (error.status === 429) {
        console.log('Rate limit exceeded');
    } else {
        console.error('API Error:', error.message);
    }
}

Available Methods

MethodDescription
createColoringPage(subject, style, complexity, visibility)Create a new coloring page

Support

For support, contact our support team at support-api@coloringpagesdesign.com.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

coloringpagesdesign

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

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.

Install

Related posts