Posting model data in C#?

Discussion in 'Shapeways API' started by 507489_deleted, Mar 5, 2014.

  1. Hi, I had a look at the github for the C# code.

    It has functions for logging in and verifying. (Even though they don't work very well but I modified them). So I think I got that at least.

    But I don't see any functions for actually posting any model data? All the functions are GET functions.

    What do I need to do to post model data in C sharp?

    Do I need to post paramters such as token "oauth_signature" or should they be URL parameters such as:


    https://api.shapeways.com/models/v1?oauth_consumer_key=85e3e b8e59f2060cdb6e19ab561&oauth_nonce=s1vzsx0pp
    &oauth_signature=9Yk9aRxvpNjunM
    &oauth_signature_method=HMACSHA1
    &oauth_timestamp=139403
    &oauth_token=be5b37605cd1a2ff61cc983f1&oauth_version =1.0a

    Do I need to send all these parameters like a form? And if so what about the encoded json data itself? Does this have a parameter name too? I guess "file" and "filename". Even though in the information these are both in the same Json data.

    ( I presume I have to send some sort of auth_signiture otherewise how will it verify that this is the correct user?)
     
    Last edited: Mar 5, 2014