Closed goleary closed 4 years ago
Unfortunately, that parameter is mislabeled, and is actually not useful. We're sorry about that!
Have you looked at the parse_expense
endpoint? Although you do have to provide a natural language sentence, it'll do the math for you.
Hope this, along with my answer to #25, helps!
I have not tried the parse_sentence
endpoint, but I'll take a look.
Thanks for the quick replies, you've set me on the right track.
(also leaving this one open for the same reason listed in #25)
@jas14
I did a little poking around with the parse_sentence
endpoint.
A couple of questions:
friendship_id
& friend_id
? http://dev.legacy.splitwise.com/dokuwiki/doku.php?id=create_expense vs http://dev.legacy.splitwise.com/dokuwiki/doku.php?id=parse_sentencefriend_id
indicates the user ID of the friend; friendship_id
is the ID of the friendship object that encodes the friendship (has the ID of each user).Sweet thanks for all of your help Joe!
I'll think about how I can leverage this in my app.
Looks like you've got some great content for the documentation ;)
I understand how to create expenses where I do all of the math on my end (i.e. submit an "array" of involved users with what each spent and what they owe).
I've noticed in the documentation there is an optional parameter:
Is there any way to use this so that I don't have to do the splitting math on my end. For instance, submit
and have the splitwise backend figure out who owes what?
If not, what is the point of this optional parameter?