Git Product home page Git Product logo

sale's Introduction

We have a listserv that allows people in the Brown community to ask for advice, sell things, and other things. Usually people in the community will sell items via the listserv by posting a list of items. Some of the problems of this method are how do potential customers know when an item is sold without emailing the seller, or what if the seller wants to change the price?

For my moving sale I wanted to have an easier and friendlier way to let others know what was sold and what was still available. I also wanted to keep myself organized as to what was sold, what wasn't, and information of who I sold the item too. So I did what any responsible front end developer would do I built a website.

First I made a Google spreadsheet of all the items I wanted to sell. Each item had a name, price, category, a boolean zero or one representing if it was sold, a list of photos, and a link to online reviews of the object. This PHP script connects to the spreadsheet using Google's Spreadsheet API. Everytime a customer visits the site, information of what is being sold is requested from the spreadsheet and returned as JSON. My PHP then processes the JSON. I am proud of this code because I have been wanting to use Google's spreadsheet's API to build something, I can now provide better documentation on how to connect and use Google's spreadsheet API with PHP, and eventually I could make this into a Google plugin.

For more information on how to connect to Google's Spreadsheet API using PHP read my blog post here: http://arlando.net/blog/connecting-to-google-spreadsheet-api-with-php/

sale's People

Contributors

arlando avatar

Stargazers

 avatar

Watchers

 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.