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

  • Home
  • SEARCH
  • 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 8431215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:47:39+00:00 2026-06-10T05:47:39+00:00

I am trying to send a get request to the url https://www.googleapis.com/groups/v1/groups/ +group_id where

  • 0

I am trying to send a get request to the url https://www.googleapis.com/groups/v1/groups/“+group_id where group id is a unique group id i am expecting to get a response which will describe setting of a group
but instead i get the response

{ “error”: { “errors”: [ { “domain”: “global”, “reason”: “authError”,
“message”: “Domain cannot use Api, Groups service is not installed.”,
“locationType”: “header”, “location”: “Authorization” } ], “code”:
401, “message”: “Domain cannot use Api, Groups service is not
installed.” } }

I enabled my group settings api in my project api and group services is turned on in my domain can any one please tell why i am getting this error and how to get rid of this error??i am using google apps for business edition free trial.
here is my code of java for sending get request in java

package org.ritesh;

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.HttpURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;

    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;

    public class Group_Detail extends HttpServlet{

        public void doGet(HttpServletRequest req, HttpServletResponse resp){
        resp.setContentType("text/HTML");
        String access_token=req.getParameter("access_token");
        String group_id=req.getParameter("group");
        String url="https://www.googleapis.com/groups/v1/groups/"+group_id+"?alt=json";

    URL ur;
    try {
        ur = new URL(url);
        HttpURLConnection conn=(HttpURLConnection) ur.openConnection();
        conn.setDoOutput(true); 
        conn.setRequestMethod("GET");

          conn.setRequestProperty("Authorization", "OAuth "+access_token);

          InputStream str= conn.getInputStream();
          BufferedReader reader=new BufferedReader(new InputStreamReader(str));
          String l="";
          resp.getWriter().println("<html><head>Group Detail</head><body>");
          while((l=reader.readLine())!=null)
          {resp.getWriter().println(l);

          }
         } catch (MalformedURLException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }


        }
    }

I am getting access_token and groupid in request parameter and they are correct for sure.

  • 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-10T05:47:41+00:00Added an answer on June 10, 2026 at 5:47 am

    i enabled group service few minutes before asking this question when i tried this code after 45 minutes this was working fine

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

Sidebar

Related Questions

I'm trying to send a post request to Parse: https://parse.com/docs/rest#objects-creating . Can't get it
I'm trying to send a http get request in a php file to a
I am trying to log in to my website (www.trailbehind.com) and then send a
I am trying to build a url so that I can send a get
I'm trying to send an http get request via the httplib, but I'm facing
I'm trying to send the node instance JSON data using an ajax get request
I am trying to send a GET request to the Imgur API to upload
I'm trying to send a HTTP POST request to a Google server and get
I am trying to send a GET request to a REST server using Java.
I'm trying to send a GET request to a page via TCP stream. Here's

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.