Coder Social home page Coder Social logo

Notify of updates about fcnpc HOT 8 CLOSED

ziggi avatar ziggi commented on May 31, 2024
Notify of updates

from fcnpc.

Comments (8)

PixellUp avatar PixellUp commented on May 31, 2024

I really like and find it useful.

from fcnpc.

WoutProvost avatar WoutProvost commented on May 31, 2024

So, you want the plugin to request to github the latest release version and compare this with the current installed version on the server? And maybe print in the server log that a new version is available?

from fcnpc.

ziggi avatar ziggi commented on May 31, 2024

@WoutProvost I think so. I tried to do this, but I couldn't.

from fcnpc.

WoutProvost avatar WoutProvost commented on May 31, 2024

This website shows the latest releases of a given repo of a given username. The JSON output of this repo can be seen here (/repos/ziggi/FCNPC/releases get converted to /repositories/49101449/releases). The javascript code this website uses, can be found here.

Second example: here.

As for the c++ part, I have unfortunately not yet (still learning) mastered this language to know how to send a HTTP request or how to convert JSON to a c++ object, but StackOverflow or Google should provide an answer for that.

from fcnpc.

ziggi avatar ziggi commented on May 31, 2024

@WoutProvost I know about it, but my problem in authorization. I will try again a bit later.

from fcnpc.

WoutProvost avatar WoutProvost commented on May 31, 2024

Hmmm when trying to send a HTTP GET request to api.github.com it will fail (even without the https:// prefix), probably because of SSL. I have created a thread in the Scripting Help forums, but have not received an answer.

from fcnpc.

ziggi avatar ziggi commented on May 31, 2024

@WoutProvost I think it is due to authentication.

from fcnpc.

WoutProvost avatar WoutProvost commented on May 31, 2024

I really don't get why that should be a problem, since it is a public repository and a simple GET api call doesn't require authentication. Why does my browser respond with the correct HTTP Code, even when I'm signed out in GitHub? Is it because my browser is a recognised application? It really blows my mind why it will not just return HTTP 200 in the server.
I should try and see if calling api.github.com works in other application. Maybe the problem lies with the SA-MP server.

from fcnpc.

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.