Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
salacious necrosis
Federal Defense Union Gallente Federation
4
|
Posted - 2014.11.17 05:37:53 -
[1] - Quote
We've just released a Google App Script library which makes it very easy to pull EVE XML API data into your Google App scripts. Lots of details on the EveKit site here. There was a previous discussion on this thread.
The TL;DR is:
- Libraries are a new Google App Script feature which make it easy to pull in code without cut and paste.
- Video showing how to use our code as a Google App Script library is here.
- Script file for our code on Google Docs is here.
- You can grab our code directly from GitHub here. Feel free to raise defects on our GitHub page if you find problems.
- Links to our examples are on the EveKit web site at the link given above.
Note that this library is for pulling data directly from the EVE API servers, not from the EveKit servers (but we're working on that as well).
We also released an update to EveKit today. The two most important changes are: 1) you can now log into EveKit using EVE SSO; and 2) the test site now automatically sync's daily from the main site. Here's a summary of all the changes:
- enhancement: EVE SSO login now supported. See this FAQ entry for information on how to add this login if you've already logged in via a different mechanism.
- enhancement: Add senderName and senderTypeID fields to MailMessage. These fields were missing previously. Existing message headers will be updated if they are still retrievable via the XML API.
- enhancement: Documentation and FAQ entries are now individually linkable, making it easier to share single entries.
- enhancement: Main and test sites are now automatically sync'd on a daily basis. See this FAQ entry for more information.
- enhancement: JSONP support removed as CORS has been available for some time. Our CORS header will authorize any site to use our data.
- bug fix: dateCompleted type incorrect in Contracts which results in this value always being 0. New contracts will now have the correct date. Old contracts will be updated in place if they are still retrievable via the XML API.
|
Zetsubou Gakusei
Sebiestor Tribe Minmatar Republic
0
|
Posted - 2014.11.17 11:55:26 -
[2] - Quote
Can this be available through the "libraries" option in the script editor? I might be saying something stupid because I'm not really familiar with google apps but it seems the way to keep track of new versions of the script. I might be misunderstanding the purpose of the feature though.
(I couldn't watch the video because I'm at work, if it's explained in there then I'm sorry for wasting your time) |
salacious necrosis
Federal Defense Union Gallente Federation
5
|
Posted - 2014.11.17 13:06:06 -
[3] - Quote
Zetsubou Gakusei wrote:Can this be available through the "libraries" option in the script editor? I might be saying something stupid because I'm not really familiar with google apps but it seems the way to keep track of new versions of the script. I might be misunderstanding the purpose of the feature though.
(I couldn't watch the video because I'm at work, if it's explained in there then I'm sorry for wasting your time)
Yes this is available via libraries. The project key is:
MuQ6aA5S72iHaKqpOLw468zA3Wcg5FMSu
You may want to watch the video if you've never used an app script library before. It's not hard, but the video holds your hand through the process.
|
Zetsubou Gakusei
Sebiestor Tribe Minmatar Republic
0
|
Posted - 2014.11.17 14:48:30 -
[4] - Quote
I have been trying this out but since I'm pretty new at API I'm stumbling on easy things. For example I'm trying to get all the characters IDs from the account so that I can choose the proper one but I can't figure out the suitable function to do so. Could you provide a small example of how to retrieve if data, if it's possible to do so? |
salacious necrosis
Federal Defense Union Gallente Federation
5
|
Posted - 2014.11.17 17:47:03 -
[5] - Quote
Zetsubou Gakusei wrote:I have been trying this out but since I'm pretty new at API I'm stumbling on easy things. For example I'm trying to get all the characters IDs from the account so that I can choose the proper one but I can't figure out the suitable function to do so. Could you provide a small example of how to retrieve if data, if it's possible to do so? EDIT: Well, it seems I finally figured out how to do it after a lot of trial and erroring, here's the code to get the ID of the first character in the account: https://gist.github.com/Jackomel/fe05a4241dcb4cc2aa8e Now that I got this out of the way I hope I can finally go deeper into this, there's so much I can do and I can't wait to play around more with this library :)
The code you wrote is pretty much what I was going to post here. The script editor doesn't complete very well for the return types, so you end up having to look at the source to figure out the structure of certain objects.
You might try out the "API explorer" spreadsheet I wrote here. You can make a copy of that doc, then just plug in your credentials and the function you want to call (the video has a demo of this). This spreadsheet will dump the contents of the return object, so you can figure out the structure that way.
|
Zetsubou Gakusei
Sebiestor Tribe Minmatar Republic
0
|
Posted - 2014.11.17 17:54:06 -
[6] - Quote
salacious necrosis wrote:Zetsubou Gakusei wrote:I have been trying this out but since I'm pretty new at API I'm stumbling on easy things. For example I'm trying to get all the characters IDs from the account so that I can choose the proper one but I can't figure out the suitable function to do so. Could you provide a small example of how to retrieve if data, if it's possible to do so? EDIT: Well, it seems I finally figured out how to do it after a lot of trial and erroring, here's the code to get the ID of the first character in the account: https://gist.github.com/Jackomel/fe05a4241dcb4cc2aa8e Now that I got this out of the way I hope I can finally go deeper into this, there's so much I can do and I can't wait to play around more with this library :) The code you wrote is pretty much what I was going to post here. The script editor doesn't complete very well for the return types, so you end up having to look at the source to figure out the structure of certain objects. You might try out the "API explorer" spreadsheet I wrote here. You can make a copy of that doc, then just plug in your credentials and the function you want to call (the video has a demo of this). This spreadsheet will dump the contents of the return object, so you can figure out the structure that way.
Yeah I got inspiration from that one, it really helped me to figure out how to get to the correct data.
Maybe I'll make a github project and post my code as write it, so people will be able to learn as I do. Right now I don't have much in mind other than making a few sheets for skills and market so I can look at my progress while at work, I'll see. |
salacious necrosis
Federal Defense Union Gallente Federation
7
|
Posted - 2014.12.01 13:11:30 -
[7] - Quote
Very minor update: I've pushed out a new version of the EVE XML API for Google App Script. This update adds support for the Corp/CustomsOffices call, which I believe was the only call missing from the first version of the library.
If you're using the code as a Google App Script library, you'll need to go to Resources -> Libraries in your script and update to version 2. If you're using the code directly, you can pull the new version from one of these links:
Google App Script Project
GitHub source
EveKit - your EVE data on the web!
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |