Interface IScraperContact

Namespace
Subsembly.Scraper
Assembly
Subsembly.Scraper.dll
public interface IScraperContact : IScraperPersist
Inherited Members

Remarks

There is a default implementation ScraperContact which can be used as a convenient base class for implementing a concrete scraper.

Properties

AccountServiceTypes

ScraperAccountServiceTypes AccountServiceTypes { get; }

Property Value

ScraperAccountServiceTypes

Authentication

ScraperAuthentication Authentication { get; }

Property Value

ScraperAuthentication

BankCode

Real or fake bank code of the account service accessed by this scraper contact.

string BankCode { get; set; }

Property Value

string

Capabilities

ScraperCapabilities Capabilities { get; }

Property Value

ScraperCapabilities

LoginURL

The start URL for accessing the account service.

string LoginURL { get; set; }

Property Value

string

ProductName

Name of the account service product that is scraped by this instance. This may be more specific than the ScraperName, based on the account for which the scraper contact was created.

string ProductName { get; set; }

Property Value

string

Profile

Provides the account servicer properties for this scraper contact.

JsonObject Profile { get; }

Property Value

JsonObject

Remarks

The following values may be contained in the returned JsonObject.

UserIDLabelThe UI label text that shall be used when prompting the user for the user ID required for Login(JsonObject). This property must always be provided by the scraper implementation. Possible user ID labels include "Credit Card Number", "User Name", or anything else.
PasswordLabelThe UI label text that shall be used when prompting the user for the password required for Login(JsonObject). This property must always be provided by the scraper implementation. Possible password labels include "Password", "Online-Banking PIN", or anything else.
AdviceTextOptional help text that shall be displayed to the user when prompting for the Login(JsonObject) credentials.

ScraperName

Human readable name of the scraper implementation.

string ScraperName { get; }

Property Value

string

Methods

BuildOAuthUrl(string)

If the scraper uses OAuth, then this must be overridden in order to dynamically provide the OAuth Authorization URL.

string BuildOAuthUrl(string sRedirectionEndpoint)

Parameters

sRedirectionEndpoint string

Optional, but usually always present, redirection endpoint. This must be embedded in the returned OAuth URL.

Returns

string

CreateSession()

Creates a new scraper session instance for this scraper contact.

IScraperSession CreateSession()

Returns

IScraperSession

A new scraper session implementation that was completely initialized for scraping accounts belonging to this contact.

Remarks

This method never fails and never throws an exception.