Giter Site home page Giter Site logo

artaccount's Introduction

artaccount

API of caldearte user account manager.

client use

1.- create a token with the user and password:

// get user token
$.ajax({
	 url: "http://artaccount.herokuapp.com/token",
	 headers: {
		 'username': options.username,
		 'password': options.password
	 },
	 type: "GET",
	 success: function(data) {
		 console.log(data);
	 }
});

2.- Get user info with encrypted token

  $.get('http://artaccount.herokuapp.com/secret', { access_token: token},
      function(data){
           console.log("user: ", data);
  });

3.- register a new user

  $.post('http://artaccount.herokuapp.com/register', {
		username: 'daniel',
		password: 'pass',
		plan: 'premium' // premium, free
	}, function(data){
  	console.log("new_user: ", data);
  });

artaccount's People

Contributors

daniel-llach avatar

Watchers

James Cloos avatar  avatar

artaccount's Issues

define user data

for register:
1.- nombre de usuario
2.- password

edit (get more info):
3.- plan
4.- imagen
5.- dirección
6.- email
7.- redes sociales
... 🍏

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.