Git Product home page Git Product logo

Comments (12)

Nkvnl avatar Nkvnl commented on June 14, 2024

Hi @shakee93,

Im trying to get data using the following code;

> var express = require('express');
var app = express();
var fonoapi = require('./node_modules/fonoapi-nodejs');
fonoapi.token = '5051049096968bd19fd89e0d8a6aecd96817453df6134dc4';

fonoapi.getLatest(myCallback, 5, 'apple');
function myCallback(queryString, data) {
    console.log(data);
}

app.listen(process.env.PORT, process.env.IP, function() {
    console.log("web server starting...");
});

Resulting in the following Error:

{ status: 'error',
message: 'Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com',
innerException: null }

Any ideas about what the problem could be?

from fonoapi.

RobinDeBock avatar RobinDeBock commented on June 14, 2024

The api is partially offline, any generated tokens are unusable

from fonoapi.

RobinDeBock avatar RobinDeBock commented on June 14, 2024

Even old tokens are unusable. I tried mailing the webmaster, but the mail address became invalid this day (23/01/2019)

from fonoapi.

Nkvnl avatar Nkvnl commented on June 14, 2024

That's unfortunate, thanks for the update.

from fonoapi.

salgua avatar salgua commented on June 14, 2024

Same problem...

from fonoapi.

rubencougil avatar rubencougil commented on June 14, 2024

ey, @shakee93 could you provide an update?

from fonoapi.

shakee93 avatar shakee93 commented on June 14, 2024

Sorry for the inconvenience !! server was due to higher resource usage.. ill be moving the service to another serve, will be backup soon !

from fonoapi.

rubencougil avatar rubencougil commented on June 14, 2024

good to know! thank you for the update @shakee93 !

from fonoapi.

nymbols avatar nymbols commented on June 14, 2024

This issue should be closed as tokens are now working.

from fonoapi.

aeharake avatar aeharake commented on June 14, 2024

still not working

{
"status": "error",
"message": "Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com",
"innerException": null
}

from fonoapi.

BelRat avatar BelRat commented on June 14, 2024

I have the same problem and get ""Invalid or Blocked Token".
Any help on if I am doing something wrong would be appeciated, see below for details.

  1. I started with generating a token from https://fonoapi.freshpixl.com/token/generate :
    Successfully Acquired your Api Token
    a054a4e98f1c8ad85adecb931a7ea83b6711b74cf991967c

  2. Then I use the retrieved token as follows (I tried multiple tokens with the same result):
    C:>curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST -H 'Accept: application/json' -d 'token=a054a4e98f1c8ad85adecb931a7ea83b6711b74cf991967c&limit=5&device=A8'
    {"status":"error","message":"Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com","innerException":null}curl: (6) Could not resolve host: application
    'limit' is not recognized as an internal or external command,
    operable program or batch file.
    'device' is not recognized as an internal or external command,
    operable program or batch file.

from fonoapi.

BelRat avatar BelRat commented on June 14, 2024

Adding to my previous comment that I get the same result reagredless if I use a space or not in-between -XPOST, i.e.:
C:>curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST ...
vs
C:>curl https://fonoapi.freshpixl.com/v1/getdevice -X POST ...

from fonoapi.

Related Issues (20)

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.