Skip to content

How to Add "x-goog-project-id" in Request header #4

Description

@vivekChowdhury

The Project is working nice for account that contains only one API project.
but in by account i have two different API projects both belongs to different Projects that i can see in( https://cloud.google.com/console#/project ).
but in current "SharpGs" Project ,we have "RestApiClient.cs" class in that class we have one method "CreateRequest" that Create Request.
here i this method i want to send my project id
like
request.Headers.Add(@"x-goog-project-id", "*****");
if i add this line it throw an error:"The remote server returned an error: (403) Forbidden."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions