Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6570427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:45:18+00:00 2026-05-25T14:45:18+00:00

Currently I m trying to use elliot s twitter library for CI at http://www.haughin.com/code/twitter/

  • 0

Currently Im trying to use elliots twitter library for CI at http://www.haughin.com/code/twitter/ after installation, it went well. the source code worked well..

Then I try to add code at index() function which is like this :

function index()
        {
            echo 'hi there';

            $user = $this->tweet->call('get', 'account/verify_credentials');

            $dec = json_decode($user);
        }

I tried to decode json by using json_decode() function but it return error

json_decode() expects parameter 1 to be string, object given

This is my first time working with json..
Is there something I missed out ?
Thank you..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:45:18+00:00Added an answer on May 25, 2026 at 2:45 pm

    It doesn`t need any variable convertion.
    just access object directly like $dec->username

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to use this gem http://github.com/pengwynn/linkedin . Everything works fine (i.e.
I am currently trying to use Miles J plugin located here http://milesj.me/code/cakephp/uploader Although I
I am trying to use the Transendit.com service with Codeigniter. Currently I am trying
I'm currently trying to use the core-plot library to graph some data I get
I am currently trying to use pHash.dll on http://phash.org Unfortunately it was written in
I am currently trying to use Eclipse to develop some code that I've been
I am currently trying to use the XMLUnit library to compare two XML files.
I am currently trying to use the Thrust library and I am having issues
Im currently trying to use a jQuery plugin: jQuery Autocomplete Tokenizer Now after posting
I am currently trying to use the android library android fu to help me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.