tomaarsen / thenounprojectapi Goto Github PK
View Code? Open in Web Editor NEWA Python wrapper allowing convenient access to the Noun Project API.
License: MIT License
A Python wrapper allowing convenient access to the Noun Project API.
License: MIT License
Hi CubieDev,
I'm very glad that I found your wrapper for the nounprojectAPI! I love the noun project and I love API's !
I'm testing out a simple python script with your tool and unfortunately, I get a Response 400 error every time I send a request:
Traceback (most recent call last): File "c:/Users/ngheta/Desktop/Personal/24-NounProject-MusicVideo/TheNounProjectAPI-master/TheNounProjectAPI-master/nick-testing.py", line 8, in <module> usage = api.get_usage() File "C:\Users\ngheta\AppData\Local\Programs\Python\Python38\lib\site-packages\wrapt\wrappers.py", line 602, in __call__ return self._self_wrapper(self.__wrapped__, self._self_instance, File "c:\Users\ngheta\Desktop\Personal\24-NounProject-MusicVideo\TheNounProjectAPI-master\TheNounProjectAPI-master\TheNounProjectAPI\call.py", line 72, in wrapper raise STATUS_CODE_EXCEPTIONS[response.status_code](response) TheNounProjectAPI.exceptions.BadRequest: Error with request <Response [400]>: Invalid parameters for request.
I've double checked on the Noun Project website that my key and secret are correct and they are, I was even able to get a proper response using the example on their website when I manually give it the endpoint. Is it possible that they changed their API and this wrapper simply needs a quick update? Or am I missing something here:
from TheNounProjectAPI import API
nounkey = "<my-noun-project-key>"
nounsecret = "<my-noun-project-secret>"
api = API(key= nounkey, secret= nounsecret)
usage = api.get_usage()
print(usage)
print("hello world")
what do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.