notifications.go
changeset 243 7386c6a454a8
parent 238 1c0042e76902
equal deleted inserted replaced
242:2ec8b4cdf94e 243:7386c6a454a8
    26 	var params apiCallParams
    26 	var params apiCallParams
    27 
    27 
    28 	if len(excludeTypes) > 0 {
    28 	if len(excludeTypes) > 0 {
    29 		params = make(apiCallParams)
    29 		params = make(apiCallParams)
    30 		for i, eType := range excludeTypes {
    30 		for i, eType := range excludeTypes {
    31 			qID := fmt.Sprintf("exclude_types[%d]", i)
    31 			qID := fmt.Sprintf("[%d]exclude_types", i)
    32 			params[qID] = eType
    32 			params[qID] = eType
    33 		}
    33 		}
    34 	}
    34 	}
    35 
    35 
    36 	if err := mc.apiCall("v1/notifications", rest.Get, params, lopt, &links, &notifications); err != nil {
    36 	if err := mc.apiCall("v1/notifications", rest.Get, params, lopt, &links, &notifications); err != nil {