Download the PHP package sectsect/wp-instagram-json without Composer

On this page you can find all versions of the php package sectsect/wp-instagram-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-instagram-json

WP Instagram JSON

Build Status PHP-Eye Latest Stable Version License

Generate JSON file with object data returned from Instagram API (for Sandbox Mode). Also upload the JSON file to AWS S3 (optional).

Why Sandbox Mode?

Understanding the Instagram API in three minutes

In order to work with the Instagram API, sooner or later, you must find your way through the nebulous API client registration and authorization process. Understanding the API access limitations can prevent a lot of wasted time, because they often result in unexpected data rather than straight-forward authentication errors that are easier to diagnose.

The infamous June 2016 API restrictions

On June 1 2016, console errors lit up all over the world when Instagram significantly restricted access to its API. The first thing to understand is that it was a deliberate business decision by Instagram, designed to prevent their API from being used for a variety of purposes. Understanding this fact will not fix the errors in the console, but it makes the restrictions more intuitive to work around if you understand their intent.

Sandbox mode vs "live" mode

The gatekeeper between developers and full API access is called sandbox mode. The documentation presents it as a temporary step in the development process, but the overwhelming majority of projects will never leave sandbox mode because Instagram only grants full access to their API for a handful of very specific use cases:

If you cannot convince the Instagram lords that your app serves one of these specific purposes, it will be rejected if you submit it to “Go live”.
For this reason, it may be more intuitive to think of it as “sideline mode”.

What can you do while in sandbox mode?

via @ https://www.instagram.com/developer/sandbox/

So I have developed this Plugin to generate JSON files at scheduled times for the data returned from Instagram API under those conditions. And also I added a feature to upload that JSON file to AWS S3. This is also for performance optimization :tada:

Requirements

Installation

  1. Clone this Repo into your wp-content/plugins directory.

  2. Install composer packages

  3. Activate the plugin through the 'Plugins' menu in WordPress.

  4. Go to Instagram on your wordpress admin panel.

  5. Set the following values and save it once.

    • Cache Expire (min)
    • Count (Range: 1-20)
    • Account Name
    • Access Token :warning: You need get Instagram API Access Token in advance.
  6. If you wanna upload JSON files to AWS S3, also fill in the following items (optional).

    • S3 Upload (ON/OFF Toggle)
    • AWS credentials key
    • AWS credentials secret
    • Region
    • Bucket name
    • The Path on S3
    • Custom URL (CDN)
  7. Furthermore, If you use AWS CloudFront Invalidation, fill in the following items (optional).
    • CloudFront Invalidation (ON/OFF Toggle)
    • Distribution ID

That's it:ok_hand:
A file will be generated at the time of the first web access into the following location.

Now, you can get the URL with javascript variable wp_ig_json.json_url.
:pushpin: If S3 Upload is enabled, this URL is automatically replaced to URL for S3.

Saved Object Structure

NOTES for Developer

Usage Example

:memo: If you host that file on AWS S3, you also need to configure CORS(Cross-Origin Resource Sharing) on S3.

Ajax with jQuery (ES6)

Ajax with Vue.js

async / await version

AWS S3

IAM Role Policy

Make a user on AWS, and attach the policy to the user.
The following are the required minimum policies.

If you use AWS CloudFront Invalidation

Change log

See CHANGELOG file.

Contributing

  1. Create an issue and describe your idea
  2. Fork it
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Publish the branch (git push origin my-new-feature)
  6. Create a new Pull Request
  7. Profit! :white_check_mark:

License

See LICENSE file.


All versions of wp-instagram-json with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sectsect/wp-instagram-json contains the following files

Loading the files please wait ....