Skip to content

ob1y2k/publitio_jquery_plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

Publitio jQuery SDK


Description

Simple jQuery Plugin for Publitio API


Requirements

This Plugin is dependent on jQuery and CryptoJS. For obvious reasons it needs to be loaded after jQuery and CryptoJS, otherwise it won't work.


Instalation

Using npm:
$ npm install publitio_jquery_plugin --save
Using yarn:

$ yarn add publitio_jquery_plugin


Usage

<!-- Your jQuery script-->
<script src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
<!-- Your CryptoJS CDN script -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js"></script>
<!-- Or if you use the npm package for CryptoJS
<script src="./node_modules/crypto-js/crypto-js.js"></script> -->
<!-- Include Publitio jQuery Plugin script-->
<script src="node_modules/publitio_jquery_sdk/dist/publitio.js"></script>
$(document).ready(() => {

	// xxxx => YOUR API_KEY
	// yyyy => YOUR API_SECRET
	$.publitio.init('xxxx', 'yyyy')

})

Sample api call to list files:

// list files
$.publitio.call('/files/list', 'GET', { offset: '0', limit: '10' })
	.then((data) => { console.log(data) })
    .catch((error) => { console.log(error) })

See examples.js file for full list of available classes, methods and options, or check the official docs on Publitio Docs


About

jQuery Plugin for Publitio API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published