foxnewsnetwork / American-Lit-315

1 stars 1 forks source link

User login and stuff #56

Open foxnewsnetwork opened 12 years ago

foxnewsnetwork commented 12 years ago

I want to give you an email (or username) and a password and I want to get an user token that I can later use to buy stuff. Specifically, I want to POST to:

/api/faggots/login (or something similar)

something like:

gametoken = "####" email="####", username="####", password="####",

and possible optional credit card information in the form of:

creditCard = "####", expiration = "####", CSV = "####", billing = "####", shipping = "####"

And I want a json telling me if login / sign up was successful and the userToken from this game

foxnewsnetwork commented 12 years ago

More specifically "/api/v1/players" is where I want to give a POST command

SpinnakerSix commented 12 years ago

use

/api/v1/user/credit_card/create
to create a new user credit card token you can use to buy stuff. (i will implement that later) parameters: { card : { number: '4242424242424242', cvc : '123' exp_month : 01 exp_year : 2013 } currency : 'usd' } response will either be an error like {'error' : 'something went wrong'} or {'card_token' : 'token'}

/api/v1/user/credit_card/get to retrieve a user's credit card token parameters: token => '12345'

response will either be an error like {'error' : 'something went wrong'} or {'card_token' : 'token'}

SpinnakerSix commented 12 years ago

next step will be to give me the player token, the credit card token, and the product id, and i should take care of purchasing. now that i think about it, i dont even think credit card token is needed to be given for purchasing.