C# Класс CBApi.CbApi

Наследование: ICBApi
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_AfterListeners List
_BeforeListeners List
_Settings CBApi.APISettings

Открытые методы

Метод Описание
AnonymousApplication ( AnonymousApplicationRequest request ) : AnonymousApplicationResponse

Anonymous apply with /v2/Application/submit

ApplyLink ( ApplyLink request ) : string

Gets the ApplyLink for a Job

ApplyLink ( NameValueCollection request ) : string

Gets the ApplyLink for a Job

CreateSavedSearch ( SavedSearchCreate app ) : CBApi.Models.SavedSearchCreateResponse
DeleteSavedSearchXML ( RequestSavedSearchDelete search ) : SavedSearchDeleteResponse
GetAccessToken ( string clientId, string clientSecret, string code, string redirectUri ) : AccessToken

Make a call to /auth/token

GetApplicationForm ( string jobDid ) : string

Make a call to /v1/application/form

GetBlankApplication ( string jobDid ) : BlankApplication

Make a call to /v1/application/blank

GetCategories ( ) : ICategoryRequest

Make a call to /v1/categories

GetEducationCodes ( ) : IEducationCodesRequest

Make a call to /v1/educationcodes

GetEmployeeTypes ( ) : IEmployeeTypesRequest

Make a call to /v1/employeetypes

GetJob ( string jobDid ) : CBApi.Models.Job

Make a call to /v1/job

GetOAuthRedirectUri ( string clientId, string redirectUri, string permissions ) : Uri

Gets the Uri to redirect to for OAuth

GetRecommendationsForJob ( string jobDid ) : List

Make a call to /v1/recommendations/forjob

GetRecommendationsForJobWithUserPreferences ( string jobDid, string userDid ) : List

Make a call to /v1/recommendations/forjobwithuserprefs

GetRecommendationsForUser ( string externalId ) : List

make a call to /v1/recommendations/foruser

JobReport ( string jobDid ) : CBApi.Models.Responses.ResponseJobReport
JobSearch ( ) : IJobSearch

Make a call to /v1/jobsearch

ListSavedSearches ( SavedSearchListRequestModel app ) : CBApi.Models.SavedSearchListResponseModel

Lists all saved searches from a single user

RetrieveASavedSearch ( string savedSearchDID, string userOAuthToken ) : Models.WebAPIs.SavedSearch.SavedSearches
RetrieveSavedSearch ( SavedSearchRetrieveRequestModel app ) : SavedSearchRetrieveResponseModel

Retrieve a single saved search

SubmitApplication ( CBApi.Models.Application app ) : ResponseApplication

Submit an application to /v1/application/submit

SubmitApplication ( RequestApplication app ) : ResponseApplication

Submit an application to /v1/application/submit

UpdateSavedSearch ( SavedSearchUpdateRequestModel app ) : SavedSearchUpdateResponseModel

Updates a SavedSearch

Защищенные методы

Метод Описание
CbApi ( ) : System.Collections.Generic
CbApi ( string key ) : System.Collections.Generic
CbApi ( string key, int timeout ) : System.Collections.Generic
CbApi ( string key, int timeout, TargetSite site ) : System.Collections.Generic
CbApi ( string key, string cobrandCode ) : System.Collections.Generic
CbApi ( string key, string cobrandCode, string siteid ) : System.Collections.Generic
WireAfterRequestEvents ( BaseRequest req ) : void
WireBeforeRequestEvents ( BaseRequest req ) : void

Описание методов

AnonymousApplication() публичный Метод

Anonymous apply with /v2/Application/submit
public AnonymousApplication ( AnonymousApplicationRequest request ) : AnonymousApplicationResponse
request CBApi.Models.AnonymousApplicationRequest the input for the application
Результат CBApi.Models.AnonymousApplicationResponse

ApplyLink() публичный Метод

Gets the ApplyLink for a Job
public ApplyLink ( ApplyLink request ) : string
request ApplyLink An ApplyLink values collection to pass to the api.
Результат string

ApplyLink() публичный Метод

Gets the ApplyLink for a Job
public ApplyLink ( NameValueCollection request ) : string
request NameValueCollection A named value collection of params to pass to the api
Результат string

CbApi() защищенный Метод

protected CbApi ( ) : System.Collections.Generic
Результат System.Collections.Generic

CbApi() защищенный Метод

protected CbApi ( string key ) : System.Collections.Generic
key string
Результат System.Collections.Generic

CbApi() защищенный Метод

protected CbApi ( string key, int timeout ) : System.Collections.Generic
key string
timeout int
Результат System.Collections.Generic

CbApi() защищенный Метод

protected CbApi ( string key, int timeout, TargetSite site ) : System.Collections.Generic
key string
timeout int
site CBApi.Models.Service.TargetSite
Результат System.Collections.Generic

CbApi() защищенный Метод

protected CbApi ( string key, string cobrandCode ) : System.Collections.Generic
key string
cobrandCode string
Результат System.Collections.Generic

CbApi() защищенный Метод

protected CbApi ( string key, string cobrandCode, string siteid ) : System.Collections.Generic
key string
cobrandCode string
siteid string
Результат System.Collections.Generic

CreateSavedSearch() публичный Метод

public CreateSavedSearch ( SavedSearchCreate app ) : CBApi.Models.SavedSearchCreateResponse
app CBApi.Models.SavedSearchCreate the saved search that is wanting to be saved
Результат CBApi.Models.SavedSearchCreateResponse

DeleteSavedSearchXML() публичный Метод

public DeleteSavedSearchXML ( RequestSavedSearchDelete search ) : SavedSearchDeleteResponse
search RequestSavedSearchDelete The search being deleted
Результат CBApi.Models.SavedSearchDeleteResponse

GetAccessToken() публичный Метод

Make a call to /auth/token
public GetAccessToken ( string clientId, string clientSecret, string code, string redirectUri ) : AccessToken
clientId string 20 character long external client ID.
clientSecret string 64 character long external client secret.
code string 20 character long OAuth authorization grant code returned from auth/prompt redirection.
redirectUri string URL that was provided at the time of external client registration.
Результат CBApi.Models.AccessToken

GetApplicationForm() публичный Метод

Make a call to /v1/application/form
public GetApplicationForm ( string jobDid ) : string
jobDid string
Результат string

GetBlankApplication() публичный Метод

Make a call to /v1/application/blank
public GetBlankApplication ( string jobDid ) : BlankApplication
jobDid string
Результат CBApi.Models.BlankApplication

GetCategories() публичный Метод

Make a call to /v1/categories
public GetCategories ( ) : ICategoryRequest
Результат ICategoryRequest

GetEducationCodes() публичный Метод

Make a call to /v1/educationcodes
public GetEducationCodes ( ) : IEducationCodesRequest
Результат IEducationCodesRequest

GetEmployeeTypes() публичный Метод

Make a call to /v1/employeetypes
public GetEmployeeTypes ( ) : IEmployeeTypesRequest
Результат IEmployeeTypesRequest

GetJob() публичный Метод

Make a call to /v1/job
public GetJob ( string jobDid ) : CBApi.Models.Job
jobDid string
Результат CBApi.Models.Job

GetOAuthRedirectUri() публичный Метод

Gets the Uri to redirect to for OAuth
public GetOAuthRedirectUri ( string clientId, string redirectUri, string permissions ) : Uri
clientId string
redirectUri string
permissions string
Результат System.Uri

GetRecommendationsForJob() публичный Метод

Make a call to /v1/recommendations/forjob
public GetRecommendationsForJob ( string jobDid ) : List
jobDid string
Результат List

GetRecommendationsForJobWithUserPreferences() публичный Метод

Make a call to /v1/recommendations/forjobwithuserprefs
public GetRecommendationsForJobWithUserPreferences ( string jobDid, string userDid ) : List
jobDid string
userDid string The unique ID of the user
Результат List

GetRecommendationsForUser() публичный Метод

make a call to /v1/recommendations/foruser
public GetRecommendationsForUser ( string externalId ) : List
externalId string The ID of the user that you wish to get recs for
Результат List

JobReport() публичный Метод

public JobReport ( string jobDid ) : CBApi.Models.Responses.ResponseJobReport
jobDid string
Результат CBApi.Models.Responses.ResponseJobReport

JobSearch() публичный Метод

Make a call to /v1/jobsearch
public JobSearch ( ) : IJobSearch
Результат IJobSearch

ListSavedSearches() публичный Метод

Lists all saved searches from a single user
public ListSavedSearches ( SavedSearchListRequestModel app ) : CBApi.Models.SavedSearchListResponseModel
app CBApi.Models.SavedSearchListRequestModel info to lead to the users saved searches
Результат CBApi.Models.SavedSearchListResponseModel

RetrieveASavedSearch() публичный Метод

public RetrieveASavedSearch ( string savedSearchDID, string userOAuthToken ) : Models.WebAPIs.SavedSearch.SavedSearches
savedSearchDID string
userOAuthToken string
Результат Models.WebAPIs.SavedSearch.SavedSearches

RetrieveSavedSearch() публичный Метод

Retrieve a single saved search
public RetrieveSavedSearch ( SavedSearchRetrieveRequestModel app ) : SavedSearchRetrieveResponseModel
app CBApi.Models.SavedSearchRetrieveRequestModel Info to lead to the saved search
Результат SavedSearchRetrieveResponseModel

SubmitApplication() публичный Метод

Submit an application to /v1/application/submit
public SubmitApplication ( CBApi.Models.Application app ) : ResponseApplication
app CBApi.Models.Application The application being submited to careerbuilder
Результат CBApi.Models.ResponseApplication

SubmitApplication() публичный Метод

Submit an application to /v1/application/submit
public SubmitApplication ( RequestApplication app ) : ResponseApplication
app CBApi.Models.RequestApplication The application being submited to careerbuilder
Результат CBApi.Models.ResponseApplication

UpdateSavedSearch() публичный Метод

Updates a SavedSearch
public UpdateSavedSearch ( SavedSearchUpdateRequestModel app ) : SavedSearchUpdateResponseModel
app CBApi.Models.SavedSearchUpdateRequestModel The data for the savedsearch
Результат SavedSearchUpdateResponseModel

WireAfterRequestEvents() защищенный Метод

protected WireAfterRequestEvents ( BaseRequest req ) : void
req CBApi.Framework.Requests.BaseRequest
Результат void

WireBeforeRequestEvents() защищенный Метод

protected WireBeforeRequestEvents ( BaseRequest req ) : void
req CBApi.Framework.Requests.BaseRequest
Результат void

Описание свойств

_AfterListeners защищенное свойство

protected List _AfterListeners
Результат List

_BeforeListeners защищенное свойство

protected List _BeforeListeners
Результат List

_Settings защищенное свойство

protected APISettings,CBApi _Settings
Результат CBApi.APISettings