Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.
/ Bekka Public archive

A C#/.Net wrapper for the metron.cloud API.

License

Notifications You must be signed in to change notification settings

Buried-In-Code/Bekka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bekka

.NET Version Status

Github - Version Github - License Github - Contributors

A C#/.Net wrapper for the metron.cloud API.

Installation

Not Yet Implemented

dotnet add package Bekka

Example Usage

using Bekka;

namespace Program
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var (username, password) = LoadConfig(); // Load your credentials from config file or env variables

            var session = new Metron(username: username, password: password);

            // Get all Marvel comics for the week of 2023-Apr-15
            var weeklyComics = await session.ListIssues(parameters: new Dictionary<string, string>
            {
                { "store_date_range_after", "2023-04-14" },
                { "store_date_range_before", "2023-04-22" },
                { "publisher_name", "marvel" }
            });
            // Print the results
            foreach (var comic in weeklyComics)
            {
                Console.WriteLine($"{comic.Id} {comic.IssueName}");
            }

            // Retrieve the details for an individual issue
            var spiderMan68 = await session.GetIssue(id: 31660);
            // Print the issue Description
            Console.WriteLine(spiderMan68.Description);
        }
    }
}

About

A C#/.Net wrapper for the metron.cloud API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages