• Home
  • BG topo map 1933
    • Topo map Rila Mountain
    • Topo map Vitosha Mountain
  • Forum
  • Geocoding Tool
    • Geocoding
  • Shop
  • Trips
  • About
    • Advertise
Mapsys.info
Mapping and geospatial news.

Document Services and Gmail now available in Apps Script

If you’ve used Google Apps Script before, you’ll know that we have deep integration with many Google Apps & APIs. You can access your Calendar and Contacts, create Google Sites, send email, and lots more. But two integrations were noticeably missing: the Google Docs word processor, and Gmail. A few weeks ago, at Google IO, we announced new Apps Script APIs for these two great products.

GmailApp – read, label and send emails

The new GmailApp should be instantly familiar if you’re used to using Gmail. You have access to labels, threads, and messages, and you can do all the things you expect: change labels, add and remove stars, mark things as important or trash or spam. You can also use the GmailApp.search() method to do any search you can do in Gmail itself. This is the first full fidelity API to Gmail, and we’re excited to see what you all will do with it.

To make sure your Gmail account remains private and secure, we are extra cautious about any script that uses GmailApp. Any time you change the code for a script that accesses Gmail, we will require you to reauthorize the script to run. Keep that in mind when editing a script that runs on a trigger – if you don’t reauthorize it, it will fail the next time the trigger tries to run it.

DocumentApp – create and edit Docs

The new DocumentApp lets you create new documents or open existing ones by id. The id of a document is always in the URL you see when visiting it, and document ids are consistent between DocumentApp and the existing DocsList service, so you can use DocsList.find() to search for a document, and then get its id from File.getId().

Once you have a document, you can access all of its individual elements. You can do search and replace (great for mail merge!), change styles or text, add or remove tables and lists, and much more. And when you are done, you can call Document.saveAndClose(), which makes sure all of your changes to the document get saved. If you don’t call it, we’ll do it for you at the end of the script, but it can be useful to call it yourself if you’d like to do something with the document after making your edits.

GmailApp and DocumentApp are available to all Apps Script users right now. Now the only question is, what are you going to build with them?

22/06/2011 | Posted in: app, georss, Google, google maps, IT, map, maps, news | Tags: account-remains, app, calendar, code, corey-goldfeder, google-apps, maps, script-team, styles-or-text | No Comments »
  • AXESSIVE.COM – Online shop for axes!


  • Shoping list

    Your list is empty
  • Last Entries

    • My new power hammer!!!
    • Tsar Kaloyan – Rex Blachorum et Bulgarorum
    • Веселина Вл. Георгиева – баронеса Лина Ротшилд
    • Europe Beer map
    • savethepostoffice.com
    • Политика в България
    • Top 100 Green Blogs To Follow In 2013 [Infographic]
    • Australia Added New Colors to the Weather Map
    • Happy New Year!
    • Bomb Sight interactive map – London Blitz
  • Social Networks

    Google+
     
    Linked In
     
    YouTube
     
    Facebook
     
    Twitter

  • Count & Feeds

    Enter your email address:

    Delivered by FeedBurner




    Free Page Rank Tool

  • Interesting and useful

    • AXESSIVE.COM
    • Extreme Java GPS Aplication
    • Funny Photos
    • Geospatial Blog
    • GISLounge
    • Great Google Maps tutorial site
    • Mapping and GIS news
    • Mappoint Forum
    • The Art Of Maps
  • News by Date

    June 2022
    M T W T F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  

© 2011 mapsys.info . All information under Creative Commons License.Powered by WordPress.Edited and modified By Ivan Tasev