Comments (6)
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.
@thorbenprimke thanks for the details. We'll investigate this asap, in any case metadata should be there if you send it.
from android_sdk.
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.
@xla can you please have a look on this #3 (comment) ? Thanks.
from android_sdk.
@dlsniper On it. @thorbenprimke Thanks for the investigation.
from android_sdk.
@thorbenprimke the fix is out. Metadata should be available now!
from android_sdk.
Related Issues (19)
- SDK updated for API 0.4
- TGEvent Has Several Incorrect SerializedNames HOT 1
- TGEvent's Metadata String Field Cause Deserialization Exception HOT 2
- User social_ids should be a map<string,string> not Array<string> HOT 3
- Create method loginWithUsernameOrEmailAndUnhashedPassword
- [CRASH] ClassCastException in TGErrorUtil
- [BUG] Authentication error while logging in HOT 1
- Unexpected char HOT 2
- Add proper tests
- Unnecessary AppCompat dependency in sdk
- Unnecessary Res folder
- Bad Manifest for lib
- Export as jar not aar HOT 3
- A way to choose async or sync Response
- Migrate to okhttp3 and retrofit2-beta3
- Add friend, follower and following count to the TGUser
- Implement SDK Enhancements
- java.net.UnknownHostException: Unable to resolve host "api.tapglue.com": HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_sdk.