Class representing connection to Fakturoid API, holds authentication information etc.
Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Fakturoid API v2 C#/.NET Client Demo Application");
            Console.WriteLine("http://github.com/ridercz/Fakturoid-API");
            Console.WriteLine("Copyright (c) Michal A. Valášek - Altairis, 2013-2014");
            Console.WriteLine();

            // Verify commandline arguments
            if (args.Length != 3) {
                Console.WriteLine("USAGE: fdemo accountname email token");
                return;
            }
            var accountName = args[0];
            var email = args[1];
            var accountToken = args[2];

            // Create context
            context = new FakturoidContext(accountName, email, accountToken, "Fakturoid API v2 C#/.NET Client Demo Application ([email protected])");

            // Do some magic
            ShowAccountInfo();
            //ShowEvents();
            //ShowTodos();
            //ShowSubjects();
            //ShowInvoices();

            // Wait for ENTER
            Console.WriteLine("Press ENTER to continue...");
            Console.ReadLine();
        }
        // Initialization

        /// <summary>
        /// Initializes a new instance of the <see cref="FakturoidEntityProxy"/> class.
        /// </summary>
        /// <param name="context">The related context.</param>
        /// <exception cref="ArgumentNullException">context</exception>
        protected FakturoidEntityProxy(FakturoidContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            this.Context = context;
        }
 internal FakturoidTodosProxy(FakturoidContext context) : base(context)
 {
 }
Exemple #4
0
 internal FakturoidInvoicesProxy(FakturoidContext context) : base(context)
 {
 }
 internal FakturoidExpensesProxy(FakturoidContext context) : base(context)
 {
 }
Exemple #6
0
 internal FakturoidEventsProxy(FakturoidContext context) : base(context)
 {
 }
 internal FakturoidTodosProxy(FakturoidContext context)
     : base(context)
 {
 }
 internal FakturoidBankAccountsProxy(FakturoidContext context) : base(context)
 {
 }
 internal FakturoidEventsProxy(FakturoidContext context)
     : base(context)
 {
 }
 internal FakturoidSubjectsProxy(FakturoidContext context)
     : base(context)
 {
 }
Exemple #11
0
 internal FakturoidSubjectsProxy(FakturoidContext context) : base(context)
 {
 }
Exemple #12
0
        static void Main(string[] args)
        {
            // Verify commandline arguments
            if (args.Length != 3) {
                Console.WriteLine("USAGE: InvoicingImport accountname email token");
                return;
            }
            var accountName = args[0];
            var email = args[1];
            var accountToken = args[2];

            // Create API context
            context = new FakturoidContext(accountName, email, accountToken);

            // Process all operations
            PurgeAll();
            ImportContacts();
            ImportInvoices();
        }
 internal FakturoidBankAccountsProxy(FakturoidContext context)
     : base(context)
 {
 }
 internal FakturoidInvoicesProxy(FakturoidContext context)
     : base(context)
 {
 }