Skip to content

Commit a85d944

Browse files
committed
🛠 Re-worked TwitterOAuth.php 🛠
:octocat: -To fill a need for conversion of media URLs to base64 (negating the need for storing the media prior to uploading) -Added public function `shipit` that privately calls to -Added private function `uploadMediaNotStored`
1 parent 8aa9106 commit a85d944

17 files changed

+1237
-1428
lines changed

Diff for: .github/workflows/lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
8-
- uses: actions/setup-node@v2
8+
- uses: actions/setup-node@v1
99
with:
1010
node-version: 12
1111
- run: npm ci

Diff for: .github/workflows/test.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
php-versions: ['7.4', '8.0', '8.1']
9+
php-versions: ['7.2', '7.3', '7.4', '8.0']
1010
name: PHP ${{ matrix.php-versions }}
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: shivammathur/setup-php@v2
1414
with:
1515
php-version: ${{ matrix.php-versions }}
16-
extensions: soap
1716
- run: composer validate --no-interaction --strict
1817
- run: composer install --no-interaction --prefer-dist
1918
- run: npm test

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ vendor
33
env
44
*.cache
55
node_modules
6+
*constants.php

Diff for: .prettierrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"singleQuote": true,
3-
"phpVersion": "7.4",
3+
"phpVersion": "7.2",
44
"trailingCommaPHP": true,
55
"braceStyle": "psr-2"
66
}

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ See documentation at https://twitteroauth.com.
88

99
PHP versions [listed](https://secure.php.net/supported-versions.php) as "active support" or "security fixes only" are supported.
1010

11-
<img src="https://github.com/abraham/twitteroauth-com/blob/main/src/images/twitter-logo-blue.png?raw=true" itemprop="image" alt="Twitter bird" width="200px">
11+
<img src="https://raw.githubusercontent.com/abraham/twitteroauth-com/master/images/twitter-logo-blue.png" itemprop="image" alt="Twitter bird" width="200px">

Diff for: composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
}
3737
],
3838
"require": {
39-
"php": "^7.4 || ^8.0 || ^8.1",
39+
"php": "^7.2 || ^7.3 || ^7.4 || ^8.0",
4040
"ext-curl": "*",
4141
"composer/ca-bundle": "^1.2"
4242
},
4343
"require-dev": {
44-
"phpunit/phpunit": "^8 || ^9",
44+
"phpunit/phpunit": "^8",
4545
"squizlabs/php_codesniffer": "^3",
4646
"phpmd/phpmd": "^2",
4747
"php-vcr/php-vcr": "^1",

0 commit comments

Comments
 (0)