Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this package deprecated? #115

Closed
xavi-developer opened this issue Apr 22, 2021 · 6 comments
Closed

Is this package deprecated? #115

xavi-developer opened this issue Apr 22, 2021 · 6 comments
Assignees

Comments

@xavi-developer
Copy link

Hello,
I have noticed some recent updates for documentation and testing, but it's been 4 years since the last release v0.4.0. I am trying to use it with guzzle v7 (one year since it was released) but composer specifies to use guzzle 6.

Would there be any chance to update it to work with guzzle 7?

Thanks.

@westy92
Copy link

westy92 commented May 14, 2021

Here's a PR to update guzzle: #116

@xavi-developer
Copy link
Author

Here's a PR to update guzzle: #116

Great, thank you very much!

@westy92
Copy link

westy92 commented May 14, 2021

I just switched to using guzzle directly:

"guzzlehttp/guzzle": "^7.0",
"guzzlehttp/oauth-subscriber": "^0.5",

since they aren't abandoned like it appears this package is.

Usage:

$tumblrStack = GuzzleHttp\HandlerStack::create();
$tumblrMiddleware = new GuzzleHttp\Subscriber\Oauth\Oauth1([
  'consumer_key'    => '',
  'consumer_secret' => '',
  'token'           => '',
  'token_secret'    => '',
]);
$tumblrStack->push($tumblrMiddleware);
$tumblrClient = new GuzzleHttp\Client([
  'base_uri' => 'https://api.tumblr.com/v2/',
  'handler' => $tumblrStack,
  'auth' => 'oauth',
]);

$response = $tumblrClient->post('blog/myblog.tumblr.com/post', [
  'form_params' => [
    'type' => 'link',
    // ...
  ],
]);

echo 'Responded with ' . $response->getStatusCode() . ': ' . $response->getBody() . PHP_EOL;

@sanmai sanmai self-assigned this Jun 23, 2021
@fredmeng
Copy link
Contributor

Hi there, is anyone going to update the package on Packagist as well? https://packagist.org/packages/tumblr/tumblr#dev-master

@sanmai
Copy link
Member

sanmai commented Jun 23, 2021

That’s the plan, yes. I’d like to do a bit more testing before this happens.

@sanmai
Copy link
Member

sanmai commented Jun 24, 2021

It's live! Please report any issues.

@sanmai sanmai closed this as completed Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants