Coder Social home page Coder Social logo

classevivaapi's Issues

Docs

It seems the docs' link are broken :-(

Incomprension

What this mean?
start=" + parseInt(((new Date).getTime() / 1000 - 86400)) + "&end=" + parseInt(((new Date).getTime() / 1000 + 86400 * 7));

it comes from app.get('/:sessionId/agenda', function (req, res)

Classeviva REST API - Suggerimento

La faccio qui visto che non sono abilitate le discussioni.


Mi pare di vedere che le informazioni vengano prese via webscraping, no? Andate a estrarre i dati dalle tabelle che vengono lette normalmente dagli utenti.

Classeviva, anche se in maniera parziale, dovrebbe avere già una sua REST API, documentata qui.

Forse è già stata utilizzata per qualcosa, ma se non è così potrebbe tornare utile per rendere alcune operazioni più veloci.

Error while starting the API

Hello, while I try to start the API, using sudo npm start, it's returns me this errors:

marcobuster@vps280105:~/ClassevivaAPI$ sudo npm start

> [email protected] start /home/marcobuster/ClassevivaAPI
> node ./app.js

module.js:328
    throw err;
    ^

Error: Cannot find module './config.json'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/marcobuster/ClassevivaAPI/app.js:5:11)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)

npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node ./app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node ./app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ClassevivaAPI package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ClassevivaAPI
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ClassevivaAPI
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/marcobuster/ClassevivaAPI/npm-debug.log
marcobuster@vps280105:~/ClassevivaAPI$ 

Il login genera un errore

Ho provato ad usare le API semplicemente con il metodo login, ho inserito credenziali corrette ed installato la libreria, ma mi da un errore:

Unhandled rejection StatusCodeError: 404 - "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /auth/app/default/AuthApi2.php was not found on this server.</p>\n</body></html>\n"
    at new StatusCodeError (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request-promise-core\lib\errors.js:32:15)
    at Request.plumbing.callback (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request-promise-core\lib\plumbing.js:104:33)
    at Request.RP$callback [as _callback] (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at Request.self.callback (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request\request.js:185:22)
    at Request.emit (events.js:311:20)
    at Request.<anonymous> (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request\request.js:1154:10)    at Request.emit (events.js:311:20)
    at IncomingMessage.<anonymous> (C:\Users\elena\Desktop\Discord Bots\Skool Bot\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:417:28)
    at IncomingMessage.emit (events.js:323:22)
    at endReadableNT (_stream_readable.js:1204:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

Sono queste API ancora utilizzabili?

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.