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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:52:47+00:00 2026-05-24T00:52:47+00:00

I am using google client api to integrate youtube in my android app. I

  • 0

I am using google client api to integrate youtube in my android app. I am using this code,

YouTubeUrl url = new YouTubeUrl(VIDEOS_FEED);
    url.author = "searchstories";
    url.maxResults = 2;
    // build the HTTP GET request
    HttpRequest request;
    try {
        request = factory.buildGetRequest(url);
        // execute the request and the parse video feed
        VideoFeed feed = request.execute().parseAs(VideoFeed.class);

while getting the feed it throws com.google.api.client.http.HttpResponseException: 400 Bad Request. First few times it worked properly and then it is giving 400 bad request. How to overcome this problem? Plz help. Thanks in advance.

  • 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-24T00:52:48+00:00Added an answer on May 24, 2026 at 12:52 am

    Actuall I was missing to add headers

    GoogleHeaders headers = new GoogleHeaders();

    headers.setApplicationName(“TestApp/1.0”);

    headers.gdataVersion = “2”;
    request.headers = headers;

    Adding the headers to the HttpRequest solved the 400 Bad Request Exception.
    Enjoy…!!!

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

Sidebar

Related Questions

I want to create Contact on Google Apps. I am Using this API And
I'm trying to integrate some Google maps bits into my Java web app using
I am using YouTube API to perform simple searches on YouTube. Here's my code
I am using google-api-client to access Google calendar. Following are the permissions in my
I'm using the lightweight Google API Java client to modify contacts. There are a
How do you get Client location using Google Maps API v3? I tried the
I'm new to web development and have started using JSONP and Google's Feed API
I was very happy to see the google code: google-api-ruby-client project, because it meant
I just wonder why Google is using in API client libraries such UglyCase method
How can I record a video from the client-side browser using google app engine?

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.