Skip to content

uwezukwechibuzor/sdk-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDK PRO JS for creating posts & getPost

a basic fetching

use this way

import Typicode from '@chidaniel/sdk-pro-js'

const client = new Typicode({
    apiKey: '12345'
})

client.getPosts().then(p => {
    console.log(p)
})

client.getPostById(1).then(p => {
    console.log(p)
})

client.createPost({
    title: "Daniel",
    body: "hello",
    userId: 1
}).then(p =>{
    //pass the function here
    console.log('new posts created)
})

About

A Simple SDK in JS for Creating Posts and Fetching Posts published to npm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published