Metadata-Version: 2.1
Name: sageintacctsdk
Version: 0.4.0
Summary: Python SDK for accessing Sage Intacct APIs
Home-page: https://github.com/fylein/sageintacct-sdk-py
Author: Ashwin T
Author-email: ashwin.t@fyle.in
License: MIT
Description: # Sage Intacct SDK
        Python SDK to access Sage Intacct web services
        
        ## Installation
        
        This project requires [Python 3+](https://www.python.org/downloads/) and [Requests](https://pypi.org/project/requests/) library (pip install requests).
        
        1. Download this project and use it (copy it in your project, etc).
        2. Install it from [pip](https://pypi.org).
                
                $ pip install sageintacctsdk
        
        ## Usage
        
        To use this SDK you'll need these Sage Intacct credentials used for authentication: **sender ID**, **sender password**, **user ID**, **company ID** and **user password**.
        
        This SDK is very easy to use.
        1. First you'll need to create a connection using the main class SageIntacctSDK.
        ```python
        from sageintacctsdk import SageIntacctSDK
        
        connection = SageIntacctSDK(
            sender_id='<YOUR SENDER ID>',
            sender_password='<YOUR SENDER PASSWORD>',
            user_id='<YOUR USER ID>',
            company_id='<YOUR COMPANY ID>',
            user_password='<YOUR USER PASSWORD>'
        )
        ```
        2. After that you'll be able to access any of the 13 API classes: accounts, attachments, bills, charge_card_accounts, charge_card_transactions, contacts, departments, employees, expense_reports, expense_types, locations, projects, vendors.
        ```python
        """
        USAGE: <SageIntacctSDK INSTANCE>.<API_NAME>.<API_METHOD>(<PARAMETERS>)
        """
        
        # Create a new Expense Report of 3800 USD, spent at 2019-28-11 and from employee with employee id E101
        data = {
            'employeeid': 'E101',
            'datecreated': {
                'year': 2019,
                'month': 11,
                'day': 28
            },
            'state': 'Approved',
            'description': 'Team lunch',
            'expenses': {
                'expense': [
                    {
                        'expensetype': 'Food',
                        'amount': 3800,
                        'expensedate': {
                            'year': 2019,
                            'month': 11,
                            'day': 28
                        }
                    }
                ]
            }
        }
        response = connection.employees.post(data)
        
        # Use get_all methods to get all objects of certain types
        response = connection.accounts.get_all()
        
        # Get details of Employee with EMPLOYEEID E101
        response = connection.employees.get(field='EMPLOYEEID', value='E101')
        ```
        
        See more details about the usage into the wiki pages of this project.
        
        ## License
        
        This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
        
Keywords: sage-intacct,sage,fyle,api,python,sdk
Platform: UNKNOWN
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
