MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / post_view

Method post_view

scratchattach/site/project.py:559–566  ·  view source on GitHub ↗

Increases the project's view counter by 1. Doesn't require a login.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected