René's URL Explorer Experiment


Title: Help: privacy control and PTZ setting · Issue #6 · ageof/MyDlink-API-Python · GitHub

Open Graph Title: Help: privacy control and PTZ setting · Issue #6 · ageof/MyDlink-API-Python

X Title: Help: privacy control and PTZ setting · Issue #6 · ageof/MyDlink-API-Python

Description: Hello and thanks for this good start for querying/setting data on Dlink cameras I'm trying to modify the code to fetch the privacy settings and eventually set the PTZ. I was able to see which function was called by F12-ing the mydlink.co...

Open Graph Description: Hello and thanks for this good start for querying/setting data on Dlink cameras I'm trying to modify the code to fetch the privacy settings and eventually set the PTZ. I was able to see which funct...

X Description: Hello and thanks for this good start for querying/setting data on Dlink cameras I'm trying to modify the code to fetch the privacy settings and eventually set the PTZ. I was able to see which f...

Opengraph URL: https://github.com/ageof/MyDlink-API-Python/issues/6

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Help: privacy control and PTZ setting","articleBody":"Hello and thanks for this good start for querying/setting data on Dlink cameras\r\n\r\nI'm trying to modify the code to fetch the privacy settings and eventually set the PTZ. I was able to see which function was called by F12-ing the mydlink.com website and playing a little with controls.\r\n\r\nFirst of all, I'm able to log in and get my camera standard info (device list and device info) with no problem thanks to the provided example. But when I call the control function I get a privilege error...\r\n\r\n    {'error': {'message': 'Client doesnt have privilege.', 'code': 31}}\r\n\r\nI've found that to control and get the privacy settings and even play with PTZ, the entry point is\r\n\r\n    POST /v2/device/control?acces_token=ACCESSTOKEN\r\n\r\n(note the `v2`, if I put `me` in place I get another same error `{'error': {'message': 'Client doesnt have privilege.', 'code': 31, 'type': 'Device'}}`)\r\n\r\nAnd then embed the JSON to the POST body to query the info\r\n   \r\n    {\"data\":{\"mydlink_id\":\"1234\",\"uid\":0,\"idx\":0,\"ctrl_id\":513}}\r\n\r\nOr add a value to set the privacy\r\n\r\n    {\"data\": {\"mydlink_id\": \"1234\", \"uid\": 0, \"idx\": 0, \"ctrl_id\": 513, \"value\": {\"value\": 2}}}\r\n\r\nOr PTZ\r\n\r\n    {\"data\": {\"mydlink_id\": \"1234\", \"uid\": 0, \"idx\": 0, \"ctrl_id\": 26, \"value\": {\"p\": 165, \"t\": 12, \"z\": 0}}}\r\n\r\nUnfortuately I'm getting the error above, and not when I query the device list and info...\r\n\r\nI'm SOOOO close of finding this, if you find anything that might help me a little thank you in advance!\r\n\r\nExample of implementation of the get privacy function\r\n\r\n    def get_device_privacy(self, mydlink_id:str) -\u003e json:\r\n\t\tdevice_privacy_url = \"https://{openapi}/v2/device/control?access_token={access_token}\".format(\r\n\t\t\topenapi=self.login_params.get('api_site')[0],\r\n\t\t\taccess_token=self.login_params.get('access_token')[0]\r\n\t\t)\r\n\t\t\t\t\r\n\t\tjson_object = {}\r\n\t\tjson_object['mydlink_id'] = mydlink_id\r\n\t\tjson_object['uid'] = 0\r\n\t\tjson_object['idx'] = 0\r\n\t\tjson_object['ctrl_id'] = 513\r\n\r\n\t\tjson_object_final = {}\r\n\t\tjson_object_final['data'] = json_object\r\n\t\t\t\t\r\n\t\tresponse = self.url_utils.get_request(url=device_privacy_url, type=self.url_utils.TYPE_POST,\r\n\t\t\t\t\t\t\t\t\t\t\t  input_json=json_object_final)\r\n\r\n\t\tdevice_privacy_json = Url.parse(response.content.decode('utf8'))\r\n\t\tprint(device_privacy_json)\r\n\t\treturn device_privacy_json['data']","author":{"url":"https://github.com/Goufalite","@type":"Person","name":"Goufalite"},"datePublished":"2021-07-18T22:07:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/6/MyDlink-API-Python/issues/6"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a76a45f6-4a5a-7158-b518-f29eb1ae8a24
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD85A:237A75:839D0E:B09B89:6A61859B
html-safe-nonce07621c2bd777e2da690673cdbb9cff832d99b32ee78440f2e621b3af3b66304b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODVBOjIzN0E3NTo4MzlEMEU6QjA5Qjg5OjZBNjE4NTlCIiwidmlzaXRvcl9pZCI6IjQxNDYyODk4MDY0Njg1NDc5OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd74fc79ec4692aaf1662cb661cd915676d5e3de478c370940bf0549ef5a51d58
hovercard-subject-tagissue:947126632
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ageof/MyDlink-API-Python/6/issue_layout
twitter:imagehttps://opengraph.githubassets.com/090dff054769e29bbd2560e0e7655f44f97e26baaddc6e2b3a52cb60b5ac335a/ageof/MyDlink-API-Python/issues/6
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/090dff054769e29bbd2560e0e7655f44f97e26baaddc6e2b3a52cb60b5ac335a/ageof/MyDlink-API-Python/issues/6
og:image:altHello and thanks for this good start for querying/setting data on Dlink cameras I'm trying to modify the code to fetch the privacy settings and eventually set the PTZ. I was able to see which funct...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGoufalite
hostnamegithub.com
expected-hostnamegithub.com
Nonec28c2f6607f2aacbd934868d997038895c9780d08babfe918550d73773326f4c
turbo-cache-controlno-preview
go-importgithub.com/ageof/MyDlink-API-Python git https://github.com/ageof/MyDlink-API-Python.git
octolytics-dimension-user_id29753283
octolytics-dimension-user_loginageof
octolytics-dimension-repository_id218527078
octolytics-dimension-repository_nwoageof/MyDlink-API-Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id218527078
octolytics-dimension-repository_network_root_nwoageof/MyDlink-API-Python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecd05235d52ffb3318513d883a56c87a121015c8b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ageof/MyDlink-API-Python/issues/6#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fageof%2FMyDlink-API-Python%2Fissues%2F6
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fageof%2FMyDlink-API-Python%2Fissues%2F6
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ageof%2FMyDlink-API-Python
Reloadhttps://github.com/ageof/MyDlink-API-Python/issues/6
Reloadhttps://github.com/ageof/MyDlink-API-Python/issues/6
Reloadhttps://github.com/ageof/MyDlink-API-Python/issues/6
ageof https://github.com/ageof
MyDlink-API-Pythonhttps://github.com/ageof/MyDlink-API-Python
Notifications https://github.com/login?return_to=%2Fageof%2FMyDlink-API-Python
Fork 5 https://github.com/login?return_to=%2Fageof%2FMyDlink-API-Python
Star 28 https://github.com/login?return_to=%2Fageof%2FMyDlink-API-Python
Code https://github.com/ageof/MyDlink-API-Python
Issues 7 https://github.com/ageof/MyDlink-API-Python/issues
Pull requests 0 https://github.com/ageof/MyDlink-API-Python/pulls
Actions https://github.com/ageof/MyDlink-API-Python/actions
Projects https://github.com/ageof/MyDlink-API-Python/projects
Security and quality 0 https://github.com/ageof/MyDlink-API-Python/security
Insights https://github.com/ageof/MyDlink-API-Python/pulse
Code https://github.com/ageof/MyDlink-API-Python
Issues https://github.com/ageof/MyDlink-API-Python/issues
Pull requests https://github.com/ageof/MyDlink-API-Python/pulls
Actions https://github.com/ageof/MyDlink-API-Python/actions
Projects https://github.com/ageof/MyDlink-API-Python/projects
Security and quality https://github.com/ageof/MyDlink-API-Python/security
Insights https://github.com/ageof/MyDlink-API-Python/pulse
Help: privacy control and PTZ settinghttps://github.com/ageof/MyDlink-API-Python/issues/6#top
https://github.com/Goufalite
Goufalitehttps://github.com/Goufalite
on Jul 18, 2021https://github.com/ageof/MyDlink-API-Python/issues/6#issue-947126632
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.