C# Class ZipRecruiter.JobAlertsAPI

API Object used by Resource classes which API Call specific data and preferences. Includes a simple interface to instantiate Resource objects, useful for creating chained calls.
Afficher le fichier Open project: ZipRecruiter/JobAlerts Class Usage Examples

Méthodes publiques

Méthode Description
JobAlertsAPI ( ) : System

Initializes a new instance of the ZipRecruiter.API class. Initialized the internal APIKey using the GlobalAPIKey.

JobAlertsAPI ( String apiKey ) : System

Initializes a new instance of the ZipRecruiter.API class.

Resource ( String endpoint ) : dynamic

Uses the given resource endpoint to return the propper ApiResource class to invoke calls on.

Méthodes protégées

Méthode Description
DeserializeResults ( Stream responseData, Type serializerType ) : dynamic

Deserializes the results of the API call into a usable native type.

Private Methods

Méthode Description
MakeRequest ( WebRequest request, Type serializerType, Byte body ) : dynamic

Augments the given WebRequest object to match the needs of the API and returns a deserialized native type.

MakeRequest ( WebRequest request, Type serializerType, String body = "" ) : dynamic

Augments the given WebRequest object to match the needs of the API and returns a deserialized native type.

Method Details

DeserializeResults() protected méthode

Deserializes the results of the API call into a usable native type.
protected DeserializeResults ( Stream responseData, Type serializerType ) : dynamic
responseData Stream Raw response data from the server
serializerType System.Type The target deserialization type.
Résultat dynamic

JobAlertsAPI() public méthode

Initializes a new instance of the ZipRecruiter.API class. Initialized the internal APIKey using the GlobalAPIKey.
public JobAlertsAPI ( ) : System
Résultat System

JobAlertsAPI() public méthode

Initializes a new instance of the ZipRecruiter.API class.
public JobAlertsAPI ( String apiKey ) : System
apiKey String The desired Private ZipRecruiter API key
Résultat System

Resource() public méthode

Uses the given resource endpoint to return the propper ApiResource class to invoke calls on.
public Resource ( String endpoint ) : dynamic
endpoint String The desired API Resource endpoint
Résultat dynamic