Giter Site home page Giter Site logo

Comments (2)

tttp avatar tttp commented on May 19, 2024

just to be clear: the API provider is the same as the provider for the API collecting signatures (ie us).

This being said, I agree it's a difference to know the IP address only of the ones that agree (that submit) vs. every visitor

it's possible/trivial to fetch that counter from your website. The easiest is probably to have a cronjob that query the counter every few min and store it
(same url we use from the widget) https://api.proca.app/api?query=query%20getCount ...

As the widget is potentially embedded in a lot of different CMSes, I can't think of a way to provide a universal solution without some extra work on your side.

What about:

  • you add a cronjob (running evry x minutes) that curl the counter api and saves the json in a place your web server can serve
  • we add a param "counter_api" that would use the url of the json file on your web server

Would it work for you?

from proca.

kantorkel avatar kantorkel commented on May 19, 2024

it's a difference to know the IP address only of the ones that agree (that submit) vs. every visitor

👍 this is what I wanted to target

What about:

* you add a cronjob (running very x minutes) that curl the counter api and saves the json in a place your web server can serve

* we add a param "counter_api" that would use the url of the json file on your web server

Sounds like a good and reasonable solution to me. However, I can not speak for an organization ...

from proca.

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.