Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Łukasz Młynik
    @lmlynik
    also, yes, you need toto provide your appi key just like @Ohmere03
    you just need to call setHeader("AUTHORIZATION", "<your api key>");
    you don't need to wrap it in any Basic digests
    nico368
    @nico368

    public class AndNico1 {

    public static void main(String[] args) throws IOException {
    
        HttpPost url = new HttpPost("https://api.matchmore.io/v5/devices/a2dee2ed-9996-41cf-af07-996c9a576472/publications");
          String apiKey;
        apiKey = "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJpc3MiOiJhbHBzIiwic3ViIjoiYjBhM2M3ZGQtMGUyMC00MDk3LTkwNmYtYjY0NjA5MzU3Y2VjIiwiYXVkIjpbIlB1YmxpYyJdLCJuYmYiOjE1MjA1MDg5NjcsImlhdCI6MTUyMDUwODk2NywianRpIjoiMSJ9.TzV_vFEjs1XlK5WeSwHnKurYSNrS28qllVaQDg8SEtcfA4AwxtvZSHCPliKkFVouD7nQiStz-rN2Rlh26KObQA";
        url.setHeader("AUTHORIZATION", apiKey);

    }
    }

    I don't have the handshake issue anymore. Thanks

    Simple question, the deviceId, worldId etc. should be in a json file or should they be added as params?

    thanks
    Łukasz Młynik
    @lmlynik
    as specified in the api documentation, not sure what json file are you referring to
    nico368
    @nico368

    in the API documentation, all that is given is this sample:

    {
    "worldId": "string",
    "deviceId": "string",
    "topic": "string",
    "range": 0,
    "duration": 0,
    "properties": {
    "band": "Metallica",
    "tags": [
    "rock",
    "metal"
    ],
    "price": 400,
    "currency": "CHF",
    "free_parking": true
    }
    }

    When creating a publication, do we send this requested Body all in the Header, or in a Json Object, or which way?

    Łukasz Młynik
    @lmlynik
    this is the body
    nico368
    @nico368
    Alright, thanks. I think I got it, Will run a few test and if I have an issue, will come back. Thanks, great support!
    nico368
    @nico368
    Hi, me again, I'm struggling to understand how the server wishes to receive the body. Is it as a json, what is the format that the server accepts and comprehends?
    Łukasz Młynik
    @lmlynik
    it is all json
    the body takes json
    remember to specify content headers for json
    nico368
    @nico368
    do I specify it as "BODY" or how does it want it specified?
    Łukasz Młynik
    @lmlynik
    its standard http
    post.setHeader("Accept", "application/json"); post.setHeader("Content-type", "application/json");
    in the response you should receive before all a response code, its http again :)
    for creation of resources, REST specification(in essence opinionated HTTP) says all resource creation(device,pub,sub) should return 201
    nico368
    @nico368
    Thanks, we managed to make it work.
    :)
    Henry Decléty
    @henrydeclety
    Hi, does anyone has sample code or documentation for using websocket in javascript? It is missing from the documentation in matchmore.io..
    Thanks
    Łukasz Młynik
    @lmlynik
    hey, so currently there is a gap in the documentation around using websockets directly. The match monitors are an abstraction above the websockets and polling
    we are in the process of prepairing such documentation for websockets so people are able to implement their own SDKs
    makni-sahar
    @makni-sahar
    Hello, I want to know if I can retrieve all the publications (having different topics and properties) around with no specific topic or selections? Thanks :)
    Alpha Diallo
    @alphasldiallo
    Hello Makni-Sahar
    It's mandatory to provide a topic
    But if you are stuck on your project because of this parameter, please feel free to send us an email. We will be glad to assist you
    makni-sahar
    @makni-sahar
    thank you :)