notifications.go
changeset 231 741291bb4772
parent 212 21d7dc38c0e4
child 238 1c0042e76902
equal deleted inserted replaced
230:d13e9a780d91 231:741291bb4772
    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+1)
    31 			qID := fmt.Sprintf("exclude_types[%d]", i)
    32 			params[qID] = eType
    32 			params[qID] = eType
    33 		}
    33 		}
    34 	}
    34 	}
    35 
    35 
    36 	if err := mc.apiCall("notifications", rest.Get, params, lopt, &links, &notifications); err != nil {
    36 	if err := mc.apiCall("notifications", rest.Get, params, lopt, &links, &notifications); err != nil {