Giter VIP home page Giter VIP logo

download-purchased-item-envato-api's Introduction

Download envato Purchased item using API, php script

Simple code to setup download of purchased items using envato API

This code is useful when you need to download a purchased item from envato using API. I originally created this to give access to a purchased file which I purchased for a friend of mine using my account. When any update to that item arrives, my friend used to ask me for the updated files, I'd then go to my envato account, download the updated files, upload to a cloud file hosting and then share the link with friend. So long and time killing process!

So, I created this script, hosted on my server in a folder & provided the link to that folder only to that friend. Now, He's able to download the latest files anytime by just visiting the url.

However, You may also want to add an extra layer of protection by adding a secret query string validation on index.php to prevent unauthorized use of API.

How to use?

Using this script is pretty simple and straightforward. Here are some steps:

  • Download the script from github
  • Upload to your server in a folder
  • Go to http://build.envato.com/ and create a new token with following selected: View and search Envato sites, Download your purchased items
  • Open class.env.php with a code editor
  • replace the value of $bearer with your token
  • Save the file and you're ready to go
  • Just use the url to the folder on your browser and you should be able to download the file.
  • You need to pass a query string purchase_code to the url, or if you don't want the user to provide a purchase code, you can add the purchase code in index.php file where it says PURCHASE-CODE-HERE

Credits

This is powered by ThemeNcode. an envato Elite Author. Check out some of our products:
PDF Viewer for WordPress
WP File Access Manager
ThemeNcode PDF Reader

We also recommend

SalesPower - WooCommerce Addon
Quotify WooCommerce Addon

Questions ?

Please feel free to reach us for any kind of queries.

download-purchased-item-envato-api's People

Contributors

abdulawal39 avatar

Stargazers

 avatar  avatar

Watchers

 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.