Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single string value PUT/POST #64

Open
takealuke opened this issue Jul 13, 2016 · 0 comments
Open

Single string value PUT/POST #64

takealuke opened this issue Jul 13, 2016 · 0 comments

Comments

@takealuke
Copy link

Is there any way to make a "PUT" request with a single string value? I'm using this library to make REST calls to Firebase -- their "PUT" allows (and often requires) writing to an "end node" with a single value (so as not to override data) -- I basically want to do:

curl -X PUT -d '"June 23, 1912"' \
  'https://docs-examples.firebaseio.com/rest/saving-data/fireblog/users/alanisawesome/birthday.json'

As is described in this documentation. (look at the "PUT" section)

I basically want to be able to do something like:

UnityHTTP.Request req = new UnityHTTP.Request ("put",
            getDBUrl("/users/" + uid + "/assessments/" + aid), true);

Notice the bool instead of a HashTable (this could just be a string)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant