{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/notifications/issues/126","repository_url":"https://api.github.com/repos/nextcloud/notifications","labels_url":"https://api.github.com/repos/nextcloud/notifications/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/notifications/issues/126/comments","events_url":"https://api.github.com/repos/nextcloud/notifications/issues/126/events","html_url":"https://github.com/nextcloud/notifications/issues/126","id":315910066,"number":126,"title":"invalid session question","user":{"login":"CezaryGoralski","id":11683322,"avatar_url":"https://avatars1.githubusercontent.com/u/11683322?v=4","gravatar_id":"","url":"https://api.github.com/users/CezaryGoralski","html_url":"https://github.com/CezaryGoralski","followers_url":"https://api.github.com/users/CezaryGoralski/followers","following_url":"https://api.github.com/users/CezaryGoralski/following{/other_user}","gists_url":"https://api.github.com/users/CezaryGoralski/gists{/gist_id}","starred_url":"https://api.github.com/users/CezaryGoralski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CezaryGoralski/subscriptions","organizations_url":"https://api.github.com/users/CezaryGoralski/orgs","repos_url":"https://api.github.com/users/CezaryGoralski/repos","events_url":"https://api.github.com/users/CezaryGoralski/events{/privacy}","received_events_url":"https://api.github.com/users/CezaryGoralski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-19T14:45:09Z","updated_at":"2018-04-19T14:49:45Z","closed_at":null,"author_association":"NONE","body":"Hello, I would like to ask for help.\r\nCurrently I’m writing my own Android application and I want to integrate it with nextcloud notifications. I’m using  request: `POST /ocs/v2.php/apps/notifications/api/v2/push with` :\r\n\r\n1. Heders:\r\n- OCS-APIRequest: true\r\n- Authorization: basic (myusername:myuserpassword).base64\r\n\r\n2.\tParams:\r\n- format: json\r\n- pushTokenHash: tokenhash\r\n- devicePublicKey: firebasetoken\r\n- proxyServer: https://myurl\r\nAnd I’m receiving response:\r\n`{  \r\n   \"ocs\":{  \r\n      \"meta\":{  \r\n         \"status\":\"failure\",\r\n         \"statuscode\":400,\r\n         \"message\":null\r\n      },\r\n      \"data\":{  \r\n         \"message\":\"INVALID_SESSION_TOKEN\"\r\n      }\r\n   }\r\n}`\r\nIn order this to work I have to create session with nextcloud login flow, like in for example nextcloud-talk? Or there is some other way?\r\nThank you in advance for help. \r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/notifications/issues/comments/382765141","html_url":"https://github.com/nextcloud/notifications/issues/126#issuecomment-382765141","issue_url":"https://api.github.com/repos/nextcloud/notifications/issues/126","id":382765141,"user":{"login":"nickvergessen","id":213943,"avatar_url":"https://avatars3.githubusercontent.com/u/213943?v=4","gravatar_id":"","url":"https://api.github.com/users/nickvergessen","html_url":"https://github.com/nickvergessen","followers_url":"https://api.github.com/users/nickvergessen/followers","following_url":"https://api.github.com/users/nickvergessen/following{/other_user}","gists_url":"https://api.github.com/users/nickvergessen/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvergessen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvergessen/subscriptions","organizations_url":"https://api.github.com/users/nickvergessen/orgs","repos_url":"https://api.github.com/users/nickvergessen/repos","events_url":"https://api.github.com/users/nickvergessen/events{/privacy}","received_events_url":"https://api.github.com/users/nickvergessen/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T14:49:45Z","updated_at":"2018-04-19T14:49:45Z","author_association":"OWNER","body":"It does not work with the password, you need to use an app password/app token (you can generate them on the personal page).\r\nIf you want to login with the password on your app and request an app password directly, there is an endpoint which allows you to do this. Maybe @tobiasKaminsky can assist you."}}
{"actor":{"display_login":"nickvergessen"}}