func ClearNotice(cxt appengine.Context, session string, access_token string, typ int, ch chan *Result) {
	client := urlfetch.Client(cxt)
	body := fmt.Sprintf(CLEAR_NOTICE_SCHEME, typ, access_token)
	if r, e := http.NewRequest(POST, CLEAR_NOTICE_URL, bytes.NewBufferString(body)); e == nil {
		MakeHeader(r, "oscid="+session, len(body))
		if resp, e := client.Do(r); e == nil {
			if resp != nil {
				defer resp.Body.Close()
			}
			pResult := new(Result)
			if bytes, e := ioutil.ReadAll(resp.Body); e == nil {
				if e := json.Unmarshal(bytes, pResult); e == nil {
					ch <- pResult
				} else {
					ch <- nil
					cxt.Errorf("Error but still going: %v", e)
				}
			} else {
				ch <- nil
				panic(e)
			}
		} else {
			ch <- nil
			cxt.Errorf("Error but still going: %v", e)
		}
	} else {
		ch <- nil
		panic(e)
	}
}
//Clear notice with different type.
Clear notice with different type.
// Clear notice with different type .
func ClearNotice(cxt appengine.Context, session string, access_token string, typ int, ch chan *Result) {
	client := urlfetch.Client(cxt)
	body := fmt.Sprintf(CLEAR_NOTICE_SCHEME, typ, access_token)
	if r, e := http.NewRequest(POST, CLEAR_NOTICE_URL, bytes.NewBufferString(body)); e == nil {
		MakeHeader(r, "oscid="+session, len(body))
		if resp, e := client.Do(r); e == nil {
			if resp != nil {
				defer resp.Body.Close()
			}
			pResult := new(Result)
			if bytes, e := ioutil.ReadAll(resp.Body); e == nil {
				if e := json.Unmarshal(bytes, pResult); e == nil {
					ch <- pResult
				} else {
					ch <- nil
					cxt.Errorf("Error but still going: %v", e)
				}
			} else {
				ch <- nil
				panic(e)
			}
		} else {
			ch <- nil
			cxt.Errorf("Error but still going: %v", e)
		}
	} else {
		ch <- nil
		panic(e)
	}
}
func ClearNotice ( cxt appengine . Context , session string , access_token string , typ int , ch chan * Result ) { client := urlfetch . Client ( cxt ) body := fmt . Sprintf ( CLEAR_NOTICE_SCHEME , typ , access_token ) if r , e := http . NewRequest ( POST , CLEAR_NOTICE_URL , bytes . NewBufferString ( body ) ) ; e == nil { MakeHeader ( r , " " + session , len ( body ) ) if resp , e := client . Do ( r ) ; e == nil { if resp != nil { defer resp . Body . Close ( ) } pResult := new ( Result ) if bytes , e := ioutil . ReadAll ( resp . Body ) ; e == nil { if e := json . Unmarshal ( bytes , pResult ) ; e == nil { ch <- pResult } else { ch <- nil cxt . Errorf ( " " , e ) } } else { ch <- nil panic ( e ) } } else { ch <- nil cxt . Errorf ( " " , e ) } } else { ch <- nil panic ( e ) } }
Clear notice with different type.
Clear notice with different type .