-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add Loops Endpoint #18
Comments
Loops are not yet supported in this library. I guess you mean submitting a loop count? |
Yes, I mean sending a POST request to 'api.vineapp.com/loops'.
Can you add the loops feature, please? Or, how can I do that?
Thanks!
Lucas
|
Would be happy to help you out submit a pull request. You'll need to figure out what parameters are sent in the request (probably someone has documented this already). Then you need to add an endpoint to https://github.com/davoclavo/vinepy/blob/master/vinepy/endpoints.py, including all the parameters. And finally, if the response is meaningful, we should add a Model which will be generated with the response body, otherwise leave the endpoint |
Hi David! But it gives me this error... Thanks! |
How are you calling the loops function? It should be something like: |
Hello, I'm calling it the same way as you are.
Can you give me a full example, please?
Also, how do I read the response Vine sends?
Thanks!
Lucas
|
By full example I refer to the code to make a loop submission.
Because it still gives me the error #3: 'A required parameter is missing'
Thanks!
|
It seems it is an error returned by them: Line 155 in 70848f3
Probably there is another required_parameter that has to be sent. How did you figure out you only needed |
With the Chrome Console's Network tab. Here's the exact body of what it
sends:
{"loops":[{"postId":"1298378206528872448","count":1,"ts":1461957282.534}]}
|
Ok thanks, it seems that the request has a unique JSON structure, so we need to update the code accordingly. I'll try to make it work this weekend. |
Ok! |
I just updated the endpoints file to add support for this. You should be able to use it like this:
good luck! |
Hello, it's only submitting 9 loop counts and then it logs the 'Try again later' error. Is there a way to fix this? |
You are probably being rate limited, send requests less often. Make sure to use proper timestamps as well. |
Hi, in python I try this : import vinepy, time vine = vinepy.API(username="[email protected]", password="mypass") but its not working , you have the solution ? |
I have a same problem , any solution ? |
Hello, I'd really appreciate if someone can give me an example of how can I use the Loops endpoint as it's not implemented in the 'examples' page.
Thanks!
Lucas
The text was updated successfully, but these errors were encountered: