PHP tumblr API integration with OAUTH
Get the solution ↓↓↓Solution:
Right at the top of your file after setting theconsumerKey
,consumerSecret
,token
, andtokenSecret
. So, for instance:
<?php
session_start();
require_once 'vendor/autoload.php';
$consumerKey = 'doTy109KhSbt4QKzdYWDns7lIWMhiehHKJ29NNsc6VS0CImPUU';
$consumerSecret = 'AsPvCGXe13Ydvcovu8uCyX4WhNk7chLoGM7bNMpH7hjQgA8FhI';
$tmpToken = isset($_SESSION['tmp_oauth_token'])? $_SESSION['tmp_oauth_token'] : null;
$tmpTokenSecret = isset($_SESSION['tmp_oauth_token_secret'])? $_SESSION['tmp_oauth_token_secret'] : null;
$client = new Tumblr\API\Client($consumerKey, $consumerSecret, $tmpToken, $tmpTokenSecret);
If you want to see a fully fleshed-out example, see this GitHub gist.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: uncaught mysqli_sql_exception
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.