How to C++ API Call

Discussion in 'Programming/Html' started by jaiamai, Oct 4, 2014.

  1. jaiamai

    jaiamai Guest

    Messages:
    4
    Likes Received:
    0
    GPU:
    (2x) Radeon 5770
    I don't understand how to work with an API from a website with C++. Something about sending a packet? I can only find online tutorials for the Windows API.

    So how do you do it? :)
     
  2. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,541
    Likes Received:
    13,561
    GPU:
    GF RTX 4070
    What is "API from a website" ?
     
  3. johnhendricks

    johnhendricks Guest

    Messages:
    14
    Likes Received:
    0
    GPU:
    50
    Refer W3shcool for more information and it is best for designing websites.
     
  4. SpecChum

    SpecChum Master Guru

    Messages:
    621
    Likes Received:
    16
    GPU:
    7900xtx - Neo G9
    I don't really follow? If you mean what I think you mean then Google "sockets in C++" or similar.

    C++ doesn't even know what a packet is let alone how to send one. You'd need an API. The Berkeley Sockets API is probably the most generic, or WinSock.

    Beej's guide was the de-facto learning resource for sockets when I was learning C++ some 15 years ago. No idea if it still is but website is still there tho: http://beej.us/guide/bgnet/
     

  5. nurvitx

    nurvitx Guest

    Messages:
    15
    Likes Received:
    0
    GPU:
    Onboard
    API stands for Application Programming Interface and consist by a set of functions exposed by an object [DLL, EXE]. I can't see how a website can expose an API... maybe their can for their backend because that is the place where objects reside for a website, the backend.

    You as an user are the front end, and I can't see how you can call an API in this case.
     
  6. kevinpham02

    kevinpham02 Guest

    Can you give url of that website?
     

Share This Page