cree-py / pynite Goto Github PK
View Code? Open in Web Editor NEWAsync python wrapper for the Fortnite API.
License: MIT License
Async python wrapper for the Fortnite API.
License: MIT License
When executing example.py i get those messages behind the prints of the main program
Hi, I'm trying to use your code, everything seems to be well, but for some reason I only get
"No API key found in request" what ever I try.
The same happens even when trying with Postman (program for testing api) and this:
http://api.fortnitetracker.com/v1/my-epic-nicname-here/pc/?TRN-Api-key=my-api-key-here
So it seems that maybe the API is not working at all currently? Or am I doing something wrong?
Will fix other mistakes I find when I get home so it's all one commit
Issue running into
[22/02/2018 00:44] ERROR hydra on_command_error 390: Exception in command 'fortnite'
Traceback (most recent call last):
File "lib/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "/root/***/***/***/****.py", line 361, in fn_profile
player = await self.fortnite.get_player(platform, name)
File "/usr/lib/python3.5/site-packages/pynite/core.py", line 67, in get_player
async with self.session.get('{API.PLAYER}/{platform}/{name}', timeout=self.timeout, headers=self.headers) as resp:
File "lib/aiohttp/client.py", line 565, in __aenter__
self._resp = yield from self._coro
File "lib/aiohttp/client.py", line 195, in _request
proxy=proxy, proxy_auth=proxy_auth, timeout=timeout)
File "lib/aiohttp/client_reqrep.py", line 91, in __init__
self.update_host(url)
File "lib/aiohttp/client_reqrep.py", line 111, in update_host
raise ValueError('Host could not be detected.')
ValueError: Host could not be detected.
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.