Class DeveloperRegistrationService.DeveloperRegistrationServiceBase
Base class for server-side implementations of DeveloperRegistrationService
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
[BindServiceMethod(typeof(DeveloperRegistrationService), "BindService")]
public abstract class DeveloperRegistrationService.DeveloperRegistrationServiceBase
Methods
GetDeveloperRegistration(GetDeveloperRegistrationRequest, ServerCallContext)
Retrieves a developer registration for a merchant.
Declaration
public virtual Task<DeveloperRegistration> GetDeveloperRegistration(GetDeveloperRegistrationRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDeveloperRegistrationRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<DeveloperRegistration> | The response to send back to the client (wrapped by a task). |
RegisterGcp(RegisterGcpRequest, ServerCallContext)
Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on.
Declaration
public virtual Task<DeveloperRegistration> RegisterGcp(RegisterGcpRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RegisterGcpRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<DeveloperRegistration> | The response to send back to the client (wrapped by a task). |
UnregisterGcp(UnregisterGcpRequest, ServerCallContext)
Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call.
Declaration
public virtual Task<Empty> UnregisterGcp(UnregisterGcpRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UnregisterGcpRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Empty> | The response to send back to the client (wrapped by a task). |