{"action":"created","issue":{"url":"https://api.github.com/repos/gophish/gophish/issues/1151","repository_url":"https://api.github.com/repos/gophish/gophish","labels_url":"https://api.github.com/repos/gophish/gophish/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/gophish/gophish/issues/1151/comments","events_url":"https://api.github.com/repos/gophish/gophish/issues/1151/events","html_url":"https://github.com/gophish/gophish/issues/1151","id":345178460,"node_id":"MDU6SXNzdWUzNDUxNzg0NjA=","number":1151,"title":"Querying API for campaign info based on rID parameter","user":{"login":"fridgehead","id":811678,"node_id":"MDQ6VXNlcjgxMTY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/811678?v=4","gravatar_id":"","url":"https://api.github.com/users/fridgehead","html_url":"https://github.com/fridgehead","followers_url":"https://api.github.com/users/fridgehead/followers","following_url":"https://api.github.com/users/fridgehead/following{/other_user}","gists_url":"https://api.github.com/users/fridgehead/gists{/gist_id}","starred_url":"https://api.github.com/users/fridgehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fridgehead/subscriptions","organizations_url":"https://api.github.com/users/fridgehead/orgs","repos_url":"https://api.github.com/users/fridgehead/repos","events_url":"https://api.github.com/users/fridgehead/events{/privacy}","received_events_url":"https://api.github.com/users/fridgehead/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-27T10:40:27Z","updated_at":"2018-07-28T15:00:22Z","closed_at":"2018-07-28T15:00:22Z","author_association":"NONE","body":"**Thanks for reaching out! We're happy to help resolve issues as quickly as possible.**\r\n\r\n**Please use this template when creating a new issue. If you do not follow this template format, your issue may be closed without comment.**\r\n\r\nBefore filing a new issue, please use the search bar at the top of the browser to search for similar issues. Also, please make sure you have read our [documentation](https://getgophish.com/documentation/), which covers how to use Gophish.\r\n\r\nWhat version of Gophish are you using?: 0.4\r\n\r\nBrief description of the issue: Is it possible to query the API for campaign information using the rID parameter from a phished user?\r\n\r\nWhat are you expecting to see happen? :\r\n\r\nWhat are you seeing happen?\r\n\r\nIf this question is related to email templates or landing pages not working as expected, please provide your template or landing page below:\r\n\r\n```html\r\nInsert code here\r\n```\r\n\r\nPlease provide any terminal output that may be relevant below:\r\n\r\n```\r\nInsert output here\r\n```\r\n\r\nPlease provide as many steps as you can to reproduce the problem:\r\n * Step 1 - \r\n * Step 2 - \r\n \r\n \r\n"},"comment":{"url":"https://api.github.com/repos/gophish/gophish/issues/comments/408613589","html_url":"https://github.com/gophish/gophish/issues/1151#issuecomment-408613589","issue_url":"https://api.github.com/repos/gophish/gophish/issues/1151","id":408613589,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYxMzU4OQ==","user":{"login":"jordan-wright","id":1317288,"node_id":"MDQ6VXNlcjEzMTcyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1317288?v=4","gravatar_id":"","url":"https://api.github.com/users/jordan-wright","html_url":"https://github.com/jordan-wright","followers_url":"https://api.github.com/users/jordan-wright/followers","following_url":"https://api.github.com/users/jordan-wright/following{/other_user}","gists_url":"https://api.github.com/users/jordan-wright/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-wright/subscriptions","organizations_url":"https://api.github.com/users/jordan-wright/orgs","repos_url":"https://api.github.com/users/jordan-wright/repos","events_url":"https://api.github.com/users/jordan-wright/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-wright/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T15:00:22Z","updated_at":"2018-07-28T15:00:22Z","author_association":"COLLABORATOR","body":"Hey @fridgehead, thanks for reaching out!\r\n\r\nI'm afraid this currently isn't possible. You could iterate over campaigns looking for that `rid` but totally understand that an o(n^2) search like that wouldn't be ideal. Since this isn't a common use case I hear about, I don't think I'll be adding an endpoint for this soon, but I'll keep it in mind. If I can find a good way to make this work, I'll make it happen.\r\n\r\nInstead, for now, if you have access to the database, each entry in the `results` table has a campaign ID field you could use to query for the campaign. Still not ideal, but probably the quickest way to get the data you're after. You could also write a script for this, using some of the functions in the Gophish code, but that'd add another layer of complexity for sure.\r\n\r\nI hope this helps! Thanks again for reaching out. I'll keep that API endpoint in mind to see if I can get something implemented."}}
{"actor":{"display_login":"jordan-wright"}}