Git Product home page Git Product logo

Comments (6)

flemingm avatar flemingm commented on July 26, 2024

project can be download at: https://skydrive.live.com/redir.aspx?cid=e3e19b71b35aec68&resid=E3E19B71B35AEC68!116&parid=E3E19B71B35AEC68!106&authkey=!AIEvyjuR3AzbWeA

Please post update and bug fixes...

from livesdk.

 avatar commented on July 26, 2024

Thanks for your feedback! The issue you are facing is around the json body created.
The format expected by the REST Services is as such:-

{
"name": "iWatermark Pro",
"type": "album"
}

Can you try and let me know how it works out.
Thanks
Deepesh

from livesdk.

flemingm avatar flemingm commented on July 26, 2024

POST on create albums (debug log):

createAlbum Watermarked by iWatermark Pro
Body: '{
"name": "iWatermark Pro",
"type" : "album"
}'
2012-02-01 22:24:27.032 LiveServicesMacOS[54970:a0f] restUrl https://apis.live.net/v5.0/me/skydrive?access_token=EwA4Aq1DBAAUlb ... 08MAAA%3d%3d
Body: '{
"name": "iWatermark Pro",
"type" : "album"
}'
2012-02-01 22:24:27.032 LiveServicesMacOS[54970:a0f] startPOSTRequest /v5.0/me/skydrive as Type: application/json
body: 46
2012-02-01 22:24:27.707 LiveServicesMacOS[54970:a0f] response: 400 - URL path /v5.0/me/skydrive

Getting:

{
error = {
code = "request_parameter_missing";
message = "The provided request entity body is missing a required parameter 'name'. Required parameters are the following: 'name'.";
};
}

also tried:

Body: '{{
"name": "iWatermark Pro"},
"type" : "album"
}'

same message.

from livesdk.

flemingm avatar flemingm commented on July 26, 2024

also BODY is encoded with UTF8 Encoding

from livesdk.

flemingm avatar flemingm commented on July 26, 2024

solved it forgot to set

HTTPHeaderField: "Content-Type" to  "application/json";

on post.

feedback: error message should include contact type of message sent.

also very useful for playing is:
http://isdk.dev.live.com/

from livesdk.

flemingm avatar flemingm commented on July 26, 2024

Latest version...

https://skydrive.live.com/redir.aspx?cid=e3e19b71b35aec68&resid=E3E19B71B35AEC68!118&parid=E3E19B71B35AEC68!106&authkey=!AEqKqIRo_tFEuI0

from livesdk.

Related Issues (13)

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.