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 9106279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:18:06+00:00 2026-06-17T02:18:06+00:00

I am doing the login using twitter oauth functionality. I am getting the following

  • 0

I am doing the login using twitter oauth functionality. I am getting the following object from $client = $token->getHttpClient($config) method:

Zend_Oauth_Client Object
(
    [_config:protected] => Zend_Oauth_Config Object
        (
            [_signatureMethod:protected] => HMAC-SHA1
            [_requestScheme:protected] => header
            [_requestMethod:protected] => POST
            [_version:protected] => 1.0
            [_callbackUrl:protected] => http://roomstayssvn.com/register/twittercallback
            [_siteUrl:protected] => http://twitter.com/oauth
            [_requestTokenUrl:protected] => 
            [_accessTokenUrl:protected] => 
            [_authorizeUrl:protected] => 
            [_consumerKey:protected] => b04fuaxLR2d035FN8tTkQ
            [_consumerSecret:protected] => NGPPovdXDnSpivNoMNIgA609ZJIB8GVKGgs6yEF8A
            [_rsaPrivateKey:protected] => 
            [_rsaPublicKey:protected] => 
            [_token:protected] => Zend_Oauth_Token_Access Object
                (
                    [_params:protected] => Array
                        (
                            [oauth_token] => 299516752-tksjJZUR7Q2gwrDRDpLOLCrYhySTGWz1SBwTKcRU
                            [oauth_token_secret] => 7S9R2FLuB0GT4vvy0GerThUnpkbSTeSalURib48Sx20
                            [user_id] => 299516752
                            [screen_name] => jogkunal5
                        )
                 )
             .....
             ..... and so on

I want to print user_id and screen_name. How can I print it?

  • 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-06-17T02:18:08+00:00Added an answer on June 17, 2026 at 2:18 am

    Following should work

    $user_id = $client->getToken()->getParam('user_id');
    $screen_name = $client->getToken()->getParam('screen_name');
    

    Zend_Oauth_Client::__call() proxies any method of Zend_Oauth_Config.
    Zend_Oauth_Config::getToken() returns Zend_Oauth_Token
    Zend_Oauth_Token::getParam() gets the value for a parameter

    Read the docs from here.

    Its better you use a Good IDE that supports Zend framework.

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

Sidebar

Related Questions

for the page I am doing needs a login authentication using Twitter (using tweetphp
I am doing the login using twitter in my zend framework application. But after
Im doing an iphone application where i login using OAuth apis of the website
i am doing one small application , wheich have login functionality, in the user
Doing the getting started of Sinatra. I get this error: ./sinatra.rb:5: undefined method `get'
Doing an ajax get request works as expected using the following code: $.ajax({ type:
I'm getting confused. I was able to make openid login kinda work using LightOpenID
I am doing a login application ( taken from here ) and basically, i
Hi i am using zend framework and doing one login example with database...i am
How to create a login form in html without using php. I'm doing this

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.