Browse Source

drop instagram stuff

pull/111/head
Aaron Parecki 5 years ago
parent
commit
cbbf10c7f3
No known key found for this signature in database GPG Key ID: 276C2817346D6056
6 changed files with 3 additions and 56 deletions
  1. +0
    -1
      composer.json
  2. +1
    -44
      composer.lock
  3. +0
    -9
      lib/helpers.php
  4. +2
    -0
      schema/migrations/0008.sql
  5. +0
    -1
      schema/mysql.sql
  6. +0
    -1
      schema/sqlite.sql

+ 0
- 1
composer.json View File

@ -9,7 +9,6 @@
"mpratt/relativetime": ">=1.0",
"firebase/php-jwt": "2.*",
"abraham/twitteroauth": "*",
"andreyco/instagram": "3.*",
"ezyang/htmlpurifier": "4.*",
"p3k/multipart": ">=0.2.0",
"tantek/cassis": "*",

+ 1
- 44
composer.lock View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "2869253e9c190f261651037122249e6f",
"content-hash": "9676d488b166fb91835dc9f7746c9d30",
"packages": [
{
"name": "abraham/twitteroauth",
@ -60,49 +60,6 @@
],
"time": "2017-06-30T22:02:01+00:00"
},
{
"name": "andreyco/instagram",
"version": "3.4.1",
"source": {
"type": "git",
"url": "https://github.com/Andreyco/Instagram-for-PHP.git",
"reference": "47b322bd3be98ca24f9ca637f14632996dc2e7dc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Andreyco/Instagram-for-PHP/zipball/47b322bd3be98ca24f9ca637f14632996dc2e7dc",
"reference": "47b322bd3be98ca24f9ca637f14632996dc2e7dc",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.3.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Andreyco\\Instagram\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-4-Clause"
],
"authors": [
{
"name": "Andrej Badin",
"email": "contact@andrejbadin.com",
"homepage": "http://andrejbadin.com"
}
],
"description": "An easy-to-use PHP Class for accessing Instagram's API.",
"homepage": "https://github.com/Andreyco/Instagram-for-PHP",
"keywords": [
"api",
"instagram"
],
"time": "2017-04-13T10:32:53+00:00"
},
{
"name": "barnabywalters/mf-cleaner",
"version": "v0.1.4",

+ 0
- 9
lib/helpers.php View File

@ -377,15 +377,6 @@ function relative_time($date) {
return $rel->timeAgo($date);
}
function instagram_client() {
return new Andreyco\Instagram\Client(array(
'apiKey' => Config::$instagramClientID,
'apiSecret' => Config::$instagramClientSecret,
'apiCallback' => Config::$base_url . 'auth/instagram/callback',
'scope' => array('basic','likes'),
));
}
function validate_photo(&$file) {
try {

+ 2
- 0
schema/migrations/0008.sql View File

@ -0,0 +1,2 @@
ALTER TABLE users
DROP COLUMN instagram_access_token;

+ 0
- 1
schema/mysql.sql View File

@ -21,7 +21,6 @@ CREATE TABLE `users` (
`twitter_access_token` text,
`twitter_token_secret` text,
`twitter_username` varchar(255) DEFAULT NULL,
`instagram_access_token` text,
`email_username` varchar(255) DEFAULT NULL,
`default_timezone` varchar(255) DEFAULT NULL,
`supported_post_types` longtext,

+ 0
- 1
schema/sqlite.sql View File

@ -21,7 +21,6 @@ CREATE TABLE users (
twitter_access_token TEXT,
twitter_token_secret TEXT,
twitter_username TEXT,
instagram_access_token TEXT,
email_username TEXT,
default_timezone TEXT,
supported_post_types TEXT,

Loading…
Cancel
Save