Need Help with CURL Extract
I have a working one that will download everything...but I want to filter out all the archived ones...
is there anyone on here that can help with this...
Comments
-
Moved to the Sky Developer Community in hopes of having more developer eyes on this question.
Elizabeth
Blackbaud Community Team0 -
Hi Victor.
I have some ideas that may help you. Would you mind sharing the link to the documentation you're following along with, so we can make sure we're talking about the same thing?
Thanks,
Bobby0 -
The documentation I’m using is from your own
site
https://cofc.academicworks.com/docs/fund_disbursements_currentVictor C.
SwindellProgrammer/Analyst
IIIDivision of
Information TechnologyCollege of
Charleston843.953.7522
“You
know the very powerful and the very stupid have one thing in
common.They
don’t alter their views to fit the facts.They
alter the facts to fit their views.Which
can be uncomfortable… if you happen to be one of the facts that
needs altering.”-The
Doctor0 -
-
As an Update...and clarification
I have a CURL command..that seems to work as desired if I put it in a DOS BAT file.
curl --verbose -g -o "N:\\csas_file1.txt" "https://myschool.academicworks.com/api/v1/disbursements.csv?c[]=initial_application_category_name__contains__Offered__contains__Accepted&c[]=opportunity_archived__eq__0&page=1&per_page=1000&fields=award_period_name,user_uid,portfolio_code,disbursement_amount&token=faketoken"
However, I I put the command in a BASH Script
curl --verbose -g -o "/mnt/itfiletrans/csas_file1.txt" "https://myschool.academicworks.com/api/v1/disbursements.csv?c[]=initial_application_category_name__contains__Offered__contains__Accepted&c[]=opportunity_archived__eq__0&page=1&per_page=1000&fields=award_period_name,user_uid,portfolio_code,disbursement_amount&token=faketoken"
I get
400 Bad Request
Can Anyone Help?
0 -
Hi Victor,
The URL contains a number of special characters which need to be escaped; in Bash, symbols like & ? and , have a special meaning.
Try wrapping the URL in single quotes ( ' ) and not double quotes ( " ).0 -
I tried this...
curl --verbose -g -o "/mnt/itfiletrans/csas_file1.txt" 'https://myschool.academicworks.com/api/v1/disbursements.csv?c[]=initial_application_category_name__contains__Offered__contains__Accepted&c[]=opportunity_archived__eq__0&page=1&per_page=1000&fields=award_period_name,user_uid,portfolio_code,disbursement_amount&token=faketoken
And I'm still getting 400 Bad request
is there another way to construct this...this is my first venture using Curl...and the only documentation for the API is the one Blackbaud gives.0 -
In the example you posted, you're missing a single quotation mark (') at the end of your URL.
Maybe that's the issue?0 -
Nah...just forgot to add it0
-
So it would look like this (except I have my real school and Token)
curl --verbose -g -o "/mnt/itfiletrans/csas_file1.txt" 'https://myschool.academicworks.com/api/v1/disbursements.csv?c[]=initial_application_category_name__contains__Offered__contains__Accepted&c[]=opportunity_archived__eq__0&page=1&per_page=1000&fields=award_period_name,user_uid,portfolio_code,disbursement_amount&token=faketoken'
I can do this call with a DOS BATCH file and it works fine...but if I put it in a .SH file and call it.. I get a 400 error
has anyone used a script with UC4 to get distributions?0 -
@Victor Swindell
Do you see anything wrong with my curl ? I am running on the command line and it will be a shell script if I ever get it to work.curl --verbose -g -o award_period.csv ‘https://tjc.academicworks.com/api/v1/disbursements/award_period.csv&page=1&per_page=1000&fields=award_period_name&token=xxxxx’
I am only trying to get one field called award period name. I have not gotten to the point of filtering out field data.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 564 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)





