Table of Contents

Class GoogleWS

Namespace
PHCWS
Assembly
PHCWS.dll

Serviços de ligação ao google.

[WebService(Namespace = "http://www.phcgo.net/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[DesignerGenerated]
public class GoogleWS : PHCGenericWS, IComponent, IDisposable, IServiceProvider
Inheritance
GoogleWS

Methods

getEmailInfo()

Returns the email address of the user logged into Google Cloud Print.

[WebMethod]
public PHCResult getEmailInfo()

Returns

PHCResult

String containing the email address of the user logged into Google Cloud Print

getOAuthURL()

Obtém o URL que deverá ser utilizado para redireccionar o utilizador para solicitar as devidas permissões

[WebMethod]
public PHCResult getOAuthURL()

Returns

PHCResult

getPrinters(bool)

Devolve a lista de impressoras registadas no GoogleCloudPrint para o token registado via o request ao URL devolvido por Google OAuth 2.0.

[WebMethod]
public PHCResult getPrinters(bool reloadCache)

Parameters

Nome Tipo Descrição
reloadCache bool

Returns

PHCResult

Devolve uma lista de impressoras no formato Cloud Printers

logout()

Logs out from the current Google Cloud Print account of the installation (clears current registered authentication token)

[WebMethod]
public PHCResult logout()

Returns

PHCResult

registerToken(string, string, string)

regista o token, este serviço não está disponível via webservice portanto não deverá aparecer na documentação

public PHCResult registerToken(string state, string token, string refresh_token)

Parameters

Nome Tipo Descrição
state string
token string
refresh_token string

Returns

PHCResult