Skip to content

Use Third Iron's apiconnector as default node server#13

Closed
karlbecker wants to merge 2 commits intoSarahZum:masterfrom
karlbecker:patch-1
Closed

Use Third Iron's apiconnector as default node server#13
karlbecker wants to merge 2 commits intoSarahZum:masterfrom
karlbecker:patch-1

Conversation

@karlbecker
Copy link
Copy Markdown
Contributor

Also changed the endpoints to match what the apiconnector server uses.

Simply replace your_browzine_library_id and this should be ready to work with the Third Iron API Connector.

Also changed the endpoints to match what the apiconnector server uses.

Simply replace `your_browzine_library_id` and this should be ready to work with the Third Iron API Connector.
Comment thread js/browzine.js Outdated
// Define Angular module and whitelist URL of server with Node.js script
var app = angular.module('viewCustom', ['angularLoad'])
.constant('nodeserver', "https://yourserver.edu")
.constant('nodeserver', "https://apiconnector.thirdiron.com/v1/libraries/your_browzine_library_id")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I could have nodeserver simply be https://apiconnector.thirdiron.com/v1/libraries/ , and then have another constant - say library_id - be defined later, so that someone integrating this would just need to change what library_id is if they use the apiconnector server.

However, I don't have an instance of Primo to use, so I can't test out how that would work. Even this approach should simplify setup instructions, though.

Thanks!

@karlbecker
Copy link
Copy Markdown
Contributor Author

Hey @SarahZum - want to close this PR out since we have a fork at https://github.com/thirdiron/primo-browzine that includes this change?

Thanks!

@SarahZum
Copy link
Copy Markdown
Owner

Thanks for the reminder, Karl, done!

@SarahZum SarahZum closed this Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants