这怎么可能?我试图在我的网站上添加steam认证按钮,并获得一般信息:用户名、steam id
例如:
views.py
:
# Example
from django.shortcuts import render
from django.http return HttpResponse
def index(response):
...
return render('link.html', response) # link html contains <a> tag which should lead to steam authentication.
...
def afterauth(request):
if auth = SteamAuth.wasSucessful:
return HttpResponse("Username: " + SteamAuth.Username() + "SteamID: " + SteamAuth.ID())
我已经得到了API密钥,但是我找不到任何关于如何在Django中使用它的文档。在
我有什么办法可以做到这一点吗?有没有教程或文档可以让我在Django中使用Steam API?在
您可以使用对django和steam API都有本机支持的^{} 包:
相关问题 更多 >
编程相关推荐