Giter VIP home page Giter VIP logo

bbapiconnector-python's People

Contributors

justein230 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bbapiconnector-python's Issues

Need instructions and tweak on the test_api_endpoint usage

Hey,
Not a big one, but it threw me off. The test_api_endpoint param isn't explained in the README. Clearly it should be something easy and small that the python can connect to. I left it as the default list of users. But that URL apparently no longer exists, so I got an error message about insufficient permissions. This was misleading, but I figured it out. I'd suggest two changes:

  1. the README should explain what test_api_endpoint is and how to select one.
  2. if the sanity check call to test_api_endpoint fails, check the status. If it's 404, give error text that says test_api_endpoint is non-existent and should be changed. If it's 401, use the current error message about permissions.
    Thanks!

Getting unexpected 403 forbidden, but Scope looks correct.

Using the BbApiConnector-Python library.

The application's registered and the Scope is set to:
"Raiser's Edge NXT" -> Read
The environment is correct.
The app authenticated just fine.

But when I try to hit any Raiser's Edge API endpoint such as:
api.sky.blackbaud.com/constituent/v1/constituents
api.sky.blackbaud.com/nxt-data-integration/v1/re/funds
api.sky.blackbaud.com/constituent/v1/genders

I get:
"title":"Forbidden","status":403,"detail":"This application has insufficient scope to perform the operation. This application's scopes configuration is either insufficient for the request or the Blackbaud Environment Admin has not yet approved the application's updated access configuration. Learn more: https://developer.blackbaud.com/skyapi/docs/applications/scopes"}

But the scope is set to "Read" and all the API calls are "get"s.

Is there anything I'm missing?

Thanks,

Trouble connecting to API

I've followed the instructions you have included, but I'm getting a 404 error and AttributeError: 'NoneType' object has no attribute 'get' when I try to start a session.

I've gone through the authentication process twice to obtain new tokens to check if I copied them incorrectly, but that didn't resolve the issue.

Below is the code that I'm using to start the session.

Sorry if this isn't the best way to talk about my issue. This is the first time that I have used Github.

from BbApiConnector import BbApiConnector

api_conn = BbApiConnector('app_secrets.json')

bb_session = api_conn.get_session()

params = {
'event_id': '11'
}

req = bb_session.get('https://api.sky.blackbaud.com/event/v1/events', params = params)

Permissions need to be set in Blackbaud by administrator

The BbApiConnector works perfectly - except when you don't have explicit SKY API access in the Blackbaud product. At least for School, my Blackbaud administrator had to turn on permissions. I was getting repeating

"401: Unauthorized. Retrieving updated access token...
Access token updated."

messages until they added "SKY API Basic" permissions to my account. My normal role in the organization is "Teacher", so perhaps this is out of the ordinary.

Do you want to add this to the list of prerequisites or the instructions to help the next user?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.