Increases the project's view counter by 1. Doesn't require a login.
(self)
| 557 | raise exceptions.APIError(str(r)) |
| 558 | |
| 559 | def post_view(self): |
| 560 | """ |
| 561 | Increases the project's view counter by 1. Doesn't require a login. |
| 562 | """ |
| 563 | requests.post( |
| 564 | f"https://api.scratch.mit.edu/users/{self.author_name}/projects/{self.id}/views/", |
| 565 | headers=headers, |
| 566 | ) |
| 567 | |
| 568 | def set_fields(self, fields_dict, *, use_site_api=False): |
| 569 | """ |