Skip to content

factset/enterprise-sdk-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FactSet

Enterprise SDK Samples

Apache-2 license

Getting Started

Follow this guide to create authentication credentials to be able to run this code samples. If using Application Credentials (OAuth) place the config file: app-config.json with the generated config in the root folder of this repository. Then it is possible to run the samples without modifying the path to the config in the code.

C# .NET

  1. Install .NET.

  2. Move to the directory containing the sample you wish to run (e.g. cd dotnet/PAEngine).

  3. Run the sample. Make any necessary changes to the sample code (e.g. the OAuth 2.0 configuration file path) and run it:

    dotnet run

Java

  1. Install Gradle.

  2. Move to the directory containing the sample you wish to run (e.g. cd java/PAEngine).

  3. Run the sample. Make any necessary changes to the sample code (e.g. the OAuth 2.0 configuration file path) and run it:

    gradle run

Python

  1. Install and activate python 3.7+. If you're using pyenv:

    pyenv install 3.9.7
    pyenv shell 3.9.7
  2. Install poetry.

  3. Install dependencies. Move to the directory containing the sample you wish to run (e.g. cd python/PAEngine) and execute:

    poetry install
  4. Run the sample. Make any necessary changes to the sample code (e.g. the OAuth 2.0 configuration file path) and run it:

    poetry run python sample.py

TypeScript

  1. Download and install Node.js 14.19 or greater.

  2. Install Yarn. If you're using the terminal:

    npm install --global yarn
  3. Move to the directory containing the sample you wish to run (e.g. cd typescript/PAEngine). Install dependencies.

    yarn install
  4. Run the sample. Make any necessary changes to the sample code (e.g. the OAuth 2.0 configuration file path) and run it:

    yarn start

Contributing

Please refer to the contributing guide.

Copyright

Copyright 2022 FactSet Research Systems Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.