C# 클래스 PodioAPI.Services.HookService

파일 보기 프로젝트 열기: podio/podio-dotnet

공개 메소드들

메소드 설명
CreateHook ( string refType, int refId, string externalURL, string type ) : Task

Create a new hook on the given object. See the area for details.

Podio API Reference: https://developers.podio.com/doc/hooks/create-hook-215056

DeleteHook ( int hookId ) : Task

Deletes the hook with the given id.

Podio API Reference: https://developers.podio.com/doc/hooks/delete-hook-215291

GetHooks ( string refType, int refId ) : Task>

Returns the hooks on the object.

Podio API Reference: https://developers.podio.com/doc/hooks/get-hooks-215285

HookService ( Podio currentInstance ) : System.Collections.Generic
ValidateHookVerification ( int hookId, string code ) : Task

Validates the hook using the code received from the verify call. On successful validation the hook will become active.

Podio API Reference: https://developers.podio.com/doc/hooks/validate-hook-verification-215241

Verify ( int hookId ) : Task

Request the hook to be validated. This will cause the hook to send a request to the URL with the parameter "type" set to "hook.verify" and "code" set to the verification code. The endpoint must then call the validate method with the code to complete the verification.

Podio API Reference: https://developers.podio.com/doc/hooks/request-hook-verification-215232

메소드 상세

CreateHook() 공개 메소드

Create a new hook on the given object. See the area for details.

Podio API Reference: https://developers.podio.com/doc/hooks/create-hook-215056

public CreateHook ( string refType, int refId, string externalURL, string type ) : Task
refType string
refId int
externalURL string The url of endpoint.
type string The type of events to listen to, see the area for options.
리턴 Task

DeleteHook() 공개 메소드

Deletes the hook with the given id.

Podio API Reference: https://developers.podio.com/doc/hooks/delete-hook-215291

public DeleteHook ( int hookId ) : Task
hookId int
리턴 Task

GetHooks() 공개 메소드

Returns the hooks on the object.

Podio API Reference: https://developers.podio.com/doc/hooks/get-hooks-215285

public GetHooks ( string refType, int refId ) : Task>
refType string
refId int
리턴 Task>

HookService() 공개 메소드

public HookService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
리턴 System.Collections.Generic

ValidateHookVerification() 공개 메소드

Validates the hook using the code received from the verify call. On successful validation the hook will become active.

Podio API Reference: https://developers.podio.com/doc/hooks/validate-hook-verification-215241

public ValidateHookVerification ( int hookId, string code ) : Task
hookId int
code string
리턴 Task

Verify() 공개 메소드

Request the hook to be validated. This will cause the hook to send a request to the URL with the parameter "type" set to "hook.verify" and "code" set to the verification code. The endpoint must then call the validate method with the code to complete the verification.

Podio API Reference: https://developers.podio.com/doc/hooks/request-hook-verification-215232

public Verify ( int hookId ) : Task
hookId int
리턴 Task