It won't work, sorry :/ We still don't have a helper for interacting with the kv resource, but making raw api requests to this resource is easy enough:

```javascript
return self
  .im.api_request('kv.set', {
    key: 'foo',
    value: 'bar'
  })
  .then(function() {
    .im.api_request('kv.set',  {key: 'foo'}
  }).then(func
  })
```