Skip to content

Commit

Permalink
Merge pull request #1430 from Cadair/jsoc_notify_docs
Browse files Browse the repository at this point in the history
Add email notify to JSOCClient docstring
  • Loading branch information
ayshih committed Jun 1, 2015
2 parents fb9b33e + 23af8f0 commit 09f3dfe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sunpy/net/jsoc/jsoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ class JSOCClient(object):
You can build more complex queries by specifiying parameters to POST to JSOC via keyword
arguments. You can generate these kwargs using the Export Data page at JSOC.
JSOC now requires a validated email address, you can pass in your validated email address
using the `~sunpy.net.jsoc.attrs.Notify` attribute. You have to register your email address
with JSOC http://jsoc.stanford.edu/ajax/register_email.html.
Examples
Expand All @@ -93,7 +97,7 @@ class JSOCClient(object):
>>> from sunpy.net import jsoc
>>> client = jsoc.JSOCClient()
>>> response = client.query(jsoc.Time('2014-01-01T00:00:00', '2014-01-01T01:00:00'),
... jsoc.Series('hmi.m_45s'))
... jsoc.Series('hmi.m_45s'), jsoc.Notify("sunpy@sunpy.org"))
the response object holds the records that your query will return:
Expand Down Expand Up @@ -125,7 +129,7 @@ class JSOCClient(object):
>>> client = jsoc.JSOCClient()
>>> response = client.query(jsoc.Time('2014/1/1T00:00:00', '2014/1/1T00:00:36'),
jsoc.Series('aia.lev1_euv_12s'), jsoc.Segment('image'),
jsoc.Wavelength(171*u.AA))
jsoc.Wavelength(171*u.AA), jsoc.Notify("sunpy@sunpy.org"))
the response object holds the records that your query will return:
Expand Down

0 comments on commit 09f3dfe

Please sign in to comment.