{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/122","repository_url":"https://api.github.com/repos/ipfs/go-ipfs-api","labels_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/122/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/122/events","html_url":"https://github.com/ipfs/go-ipfs-api/issues/122","id":358476369,"node_id":"MDU6SXNzdWUzNTg0NzYzNjk=","number":122,"title":"issue regarding function","user":{"login":"akshitababel","id":31233394,"node_id":"MDQ6VXNlcjMxMjMzMzk0","avatar_url":"https://avatars2.githubusercontent.com/u/31233394?v=4","gravatar_id":"","url":"https://api.github.com/users/akshitababel","html_url":"https://github.com/akshitababel","followers_url":"https://api.github.com/users/akshitababel/followers","following_url":"https://api.github.com/users/akshitababel/following{/other_user}","gists_url":"https://api.github.com/users/akshitababel/gists{/gist_id}","starred_url":"https://api.github.com/users/akshitababel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshitababel/subscriptions","organizations_url":"https://api.github.com/users/akshitababel/orgs","repos_url":"https://api.github.com/users/akshitababel/repos","events_url":"https://api.github.com/users/akshitababel/events{/privacy}","received_events_url":"https://api.github.com/users/akshitababel/received_events","type":"User","site_admin":false},"labels":[{"id":210899146,"node_id":"MDU6TGFiZWwyMTA4OTkxNDY=","url":"https://api.github.com/repos/ipfs/go-ipfs-api/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-09-10T05:47:19Z","updated_at":"2018-09-18T09:01:14Z","closed_at":"2018-09-11T19:30:32Z","author_association":"NONE","body":"Can I create app ID using go ipfs api? Is there any function to do this? If not can we have a function included in go ipfs api to create app id?"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/comments/422314424","html_url":"https://github.com/ipfs/go-ipfs-api/issues/122#issuecomment-422314424","issue_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/122","id":422314424,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjMxNDQyNA==","user":{"login":"akshitababel","id":31233394,"node_id":"MDQ6VXNlcjMxMjMzMzk0","avatar_url":"https://avatars2.githubusercontent.com/u/31233394?v=4","gravatar_id":"","url":"https://api.github.com/users/akshitababel","html_url":"https://github.com/akshitababel","followers_url":"https://api.github.com/users/akshitababel/followers","following_url":"https://api.github.com/users/akshitababel/following{/other_user}","gists_url":"https://api.github.com/users/akshitababel/gists{/gist_id}","starred_url":"https://api.github.com/users/akshitababel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshitababel/subscriptions","organizations_url":"https://api.github.com/users/akshitababel/orgs","repos_url":"https://api.github.com/users/akshitababel/repos","events_url":"https://api.github.com/users/akshitababel/events{/privacy}","received_events_url":"https://api.github.com/users/akshitababel/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T09:01:14Z","updated_at":"2018-09-18T09:01:14Z","author_association":"NONE","body":"This code needs one more parameter which is the size of the key. The above code needs to get updated with the following one:\r\n\r\nfunc newKey(ctx context.Context, name string) (string, error) {\r\n\tvar newKey struct {\r\n\t\tName string\r\n\t\tId   string\r\n\t}\r\n\tvar err error\r\n\ts := shell.NewLocalShell()\r\n\tif err := s.\r\n\t\tRequest(\"key/gen\").\r\n\t\tArguments(name).\r\n\t\tOption(\"type\", \"rsa\").Option(\"size\", \"2048\").\r\n\t\tExec(context.Background(), &newKey); err != nil {\r\n\t\tfmt.Println(err)\r\n\t\treturn \"\", err\r\n\t}\r\n\treturn newKey.Id, err\r\n}"}}
{"actor":{"display_login":"akshitababel"}}