question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use of API Key through SDK?

See original GitHub issue

Hey, there!

From my understanding, it is not possible to pass the API key generated in the website to the EventRegistry SDK, right? Unless I have it stored in a settings.json file in the same directory as the EventRegistry.py file, that is (which I only found out reading the code’s comments, I think this should also be in the wiki somewhere). This makes the SDK pretty useless if you intend to do more than 20 searches a day (in which case you’d need to use your API key), right? I’d strongly recommend that you add a parameter to the EventRegistry.__init__() for the apiKey. Also, it would be great if the wiki mentioned the need for an API key, because I only found out about it once my 20 requests were done and I accidentally found the section of the control panel where you can find the API key. Finally, it’s not clear to me: is it possible to group terms in the keywords parameter? Can I do something like q = QueryArticles(keywords="'new york' baseball 'mets stadium'"? Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
gregorlebancommented, Apr 20, 2017

Luca, we’ve changed the library so that now the API key is the only way to issue API requests. thank you again for your suggestions.

0reactions
lucabezerracommented, Jan 13, 2017

Yes, the API Key can be captured, but one can only do so much with it (like using all of your requests’ daily quota). Having access to the account name and password allows someone to do much more, like deleting your account or doing all kinds of stuff to it on your behalf. Even if there are not many things that can be done in the account’s control panel at the moment, there might be one day, so this is a potential threat. And also, the apiKey could be encrypted in the same way as I’ve suggested for the acc/password, which would result in twice as much security.

In any case, these are just some suggestions, the ultimate design decisions are, obviously, yours. Thanks for pushing it to pip!

Cheers, Luca

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using API Keys | Maps SDK for Android
The API key is a unique identifier that authenticates requests associated with your project for usage and billing purposes. You must have at...
Read more >
Why and when to use API keys
API keys are for projects, authentication is for users · API keys identify the calling project — the application or site — making...
Read more >
API Key Best Practices and Examples
When you're using a REST API, especially one that incurs costs or has usage limits, you need to use an API key to...
Read more >
What is an API key?
API's are used for software applications to send and receive data. API's can also connect one program to another, to share functionality. In...
Read more >
Set up API keys using the API Gateway console
Choose a REST API. · In the API Gateway main navigation pane, choose API Keys. · From the Actions drop-down menu, choose Create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found