Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            const string accessId = "{MEMBER_ID}";
            const string secretKey = "{SECRET_KEY}";
            const string url = "{URL TO AUDIT}";

            var authenticator = new Authenticator(accessId, secretKey, 300);

            var urlMetricsService = new UrlMetricsService(authenticator);
            var urlResponse = urlMetricsService.GetUrlMetrics(url);

            var topPages = new TopPagesService(authenticator);
            var topPagesResponse = topPages.GetTopPages(url, TopPagesConstants.ColAll, 0, 1);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TopPagesService"/> class.
 /// </summary>
 /// <param name="authenticator">The authenticator.</param>
 public TopPagesService(Authenticator authenticator)
 {
     _auth = authenticator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UrlMetricsService"/> class.
 /// </summary>
 /// <param name="authenticator">The authenticator.</param>
 public UrlMetricsService(Authenticator authenticator)
 {
     _auth = authenticator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnchorTextService"/> class.
 /// </summary>
 /// <param name="authenticator">The authenticator.</param>
 public AnchorTextService(Authenticator authenticator)
 {
     _auth = authenticator;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LinksService"/> class.
 /// </summary>
 /// <param name="authenticator">The authenticator.</param>
 public LinksService(Authenticator authenticator)
 {
     _auth = authenticator;
 }