GithubHelp home page GithubHelp logo

Comments (6)

thorbenprimke avatar thorbenprimke commented on August 26, 2024

Aright. I figured out what the problem is. It's a bug in API version 0.4.

See logs below. Same request with same payload. 0.3 response has metadata. 0.4 response has no metadata.

@onurakpolat Is this a bug or feature? If bug, when you think it could be fixed? Thanks!

request:

curl https://api.tapglue.com/0.3/me/events \
     -H "Authorization: Basic [[AUTH_TOKEN]]" \
     -H 'Accept: application/json' \
     -H "User-Agent: Tapglue Test UA" \
     -H "Content-Type: application/json" \
     -d "{\"type\":\"bookmark\",\"object\":{\"id\":\"picture_123\",\"type\":\"picture\",\"display_names\":{\"en\":\"Picture 1\",\"de\":\"Bild 1\"}},\"metadata\":{\"category\":\"landscape\"},\"visibility\":40}"

response:

{
   "id_string":"20039054296878887",
   "user_id_string":"18535644582121605",
   "id":20039054296878887,
   "user_id":18535644582121605,
   "type":"bookmark",
   "visibility":40,
   "object":{
      "id":"picture_123",
      "type":"picture",
      "display_names":{
         "de":"Bild 1",
         "en":"Picture 1"
      }
   },
   "metadata":{
      "category":"landscape"
   },
   "created_at":"2016-01-16T23:57:07.132006109Z",
   "updated_at":"2016-01-16T23:57:07.132006109Z",
   "enabled":true
}

request:

curl https://api.tapglue.com/0.4/me/events \
     -H "Authorization: Basic [[AUTH_TOKEN]]" \
     -H 'Accept: application/json' \
     -H "User-Agent: Tapglue Test UA" \
     -H "Content-Type: application/json" \
     -d "{\"type\":\"bookmark\",\"object\":{\"id\":\"picture_123\",\"type\":\"picture\",\"display_names\":{\"en\":\"Picture 1\",\"de\":\"Bild 1\"}},\"metadata\":{\"category\":\"landscape\"},\"visibility\":40}"

response:

{
   "id_string":"20039078825168679",
   "tg_object_id":"0",
   "user_id_string":"18535644582121605",
   "id":20039078825168679,
   "user_id":18535644582121605,
   "type":"bookmark",
   "visibility":40,
   "object":{
      "id":"picture_123",
      "type":"picture",
      "display_names":{
         "de":"Bild 1",
         "en":"Picture 1"
      }
   },
   "object_id":0,
   "owned":false,
   "created_at":"2016-01-16T23:57:21.751568327Z",
   "updated_at":"2016-01-16T23:57:21.751568327Z",
   "enabled":true
}

from android_sdk.

oxnr avatar oxnr commented on August 26, 2024

@thorbenprimke thanks for the details. We'll investigate this asap, in any case metadata should be there if you send it.

from android_sdk.

dlsniper avatar dlsniper commented on August 26, 2024

I've updated the comments above. @thorbenprimke please make sure next time you don't leak tokens ;) Thank you for the detailed investigation.

from android_sdk.

dlsniper avatar dlsniper commented on August 26, 2024

@xla can you please have a look on this #3 (comment) ? Thanks.

from android_sdk.

xla avatar xla commented on August 26, 2024

@dlsniper On it. @thorbenprimke Thanks for the investigation.

from android_sdk.

oxnr avatar oxnr commented on August 26, 2024

@thorbenprimke the fix is out. Metadata should be available now!

from android_sdk.

Related Issues (19)

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.