{"action":"opened","issue":{"url":"https://api.github.com/repos/Blacksmoke16/GESI/issues/32","repository_url":"https://api.github.com/repos/Blacksmoke16/GESI","labels_url":"https://api.github.com/repos/Blacksmoke16/GESI/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Blacksmoke16/GESI/issues/32/comments","events_url":"https://api.github.com/repos/Blacksmoke16/GESI/issues/32/events","html_url":"https://github.com/Blacksmoke16/GESI/issues/32","id":335577128,"node_id":"MDU6SXNzdWUzMzU1NzcxMjg=","number":32,"title":"Pulling names corpnames issues","user":{"login":"Errious","id":32072942,"node_id":"MDQ6VXNlcjMyMDcyOTQy","avatar_url":"https://avatars0.githubusercontent.com/u/32072942?v=4","gravatar_id":"","url":"https://api.github.com/users/Errious","html_url":"https://github.com/Errious","followers_url":"https://api.github.com/users/Errious/followers","following_url":"https://api.github.com/users/Errious/following{/other_user}","gists_url":"https://api.github.com/users/Errious/gists{/gist_id}","starred_url":"https://api.github.com/users/Errious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Errious/subscriptions","organizations_url":"https://api.github.com/users/Errious/orgs","repos_url":"https://api.github.com/users/Errious/repos","events_url":"https://api.github.com/users/Errious/events{/privacy}","received_events_url":"https://api.github.com/users/Errious/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T21:36:50Z","updated_at":"2018-06-25T21:36:50Z","closed_at":null,"author_association":"NONE","body":"After ESI got an Update and some Endpoints like character_names and others have to be migrated into the '/v2/universe/names/' scope now, GESI is missing a replacement for this.\r\n\r\nOne temporary workaround was Blacksmoke´s idea with this code snippet:\r\n\r\n/** \r\n* Resolve a set of IDs to names and categories. Supported ID’s for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types.\r\n* @param {array} The ids to resolve.\r\n* @return List of id/name associations for a set of ID’s.\r\n* @customfunction\r\n*/\r\nfunction names(ids) {\r\n  var data = doRequest_(BASE_URL + '/v2/universe/names/', 'POST', null, ids.map(function(id) { return id[0]; }));\r\n  var response = [];\r\n  data.data.forEach(function(d) {\r\n    var temp = [];\r\n    temp.push(d['id']);\r\n    temp.push(d['name']);\r\n    response.push(temp);\r\n  });\r\n  return response;\r\n}\r\n\r\nBut sadly this is not working if single cell conent want to be used, it is only working for a \"range\" of values.\r\n\r\nA Solution would be nice to see :-)"}}
{"actor":{"display_login":"Errious"}}