GithubHelp home page GithubHelp logo

dkelsey / bvb-rest-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wp-api/wp-api

0.0 3.0 0.0 1.12 MB

Based on WP-API, this adds the ability to upload and processes CSV files

License: GNU General Public License v2.0

Shell 0.72% PHP 99.28%

bvb-rest-api's Introduction

REST API

This is derived from the WP-API (which enables Access to your WordPress site's data through an easy-to-use HTTP REST API). I've stripped out that functionality and added just the ability to upload, validate and process CSV files. This is part of an Admin Console plugin I developed for validating and loading specificic CSVs into the underlying wordpress DB - into another DB Schema.

About

The WP-API is well documented in the original repo (please check it out). I was creating an Admin Console plugin to allow processing of batch and remittance reports (CSV files). This had to run alongside and already running Wordpress Site and I knew I needed some sort of RESTful API. I found this and decided to use it.

I cracked open the code and read their Extending the APi. I had very little trouble navigating the code and implementing what I wanted.

I wanted to enable uploaing CSVs, Validation, Processing, compressing, moving and deleting. This repo contains contains that.

Notes

I ran into difuculty with regards to nonces and authentication. I haven't spent a year working with WordPress, thus i'm not familiar with all the inner workings and subdelties. the API should run within a wordpress app with an anuthenticated Admin account. They describe in their documentation three methods of authentication. Basic authenication worked after installing the correct plugin--in development I used curl for testing. The description of the use of nonces was short and not useful thus I simply hacked it out. This API is secure via obfiscation.

bvb-rest-api's People

Contributors

rmccue avatar rachelbaker avatar danielbachhuber avatar kadamwhite avatar tlovett1 avatar afurculita avatar tobych avatar dkelsey avatar osiux avatar edhurtig avatar tierra avatar pollyplummer avatar jdgrimes avatar japh avatar pippinsplugins avatar ericandrewlewis avatar thenbrent avatar maxcutler avatar mattheu avatar kellbot avatar jeremyfelt avatar ironpaperweight avatar traversal avatar simonlampen avatar kokarn avatar dimadin avatar markoheijnen avatar codebykat avatar shelob9 avatar jmusal avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.