laurelandwolf / sdk

JS SDK for Laurel & Wolf API
0 stars 1 forks source link

`#include` should accept individual arguments or an array. #32

Open michaelgraham opened 9 years ago

michaelgraham commented 9 years ago

currently:

api()
  .getRecipient()
  .include(['activeAccount', 'defaultCard']);

produces /v0.1/recipient?include=0.a,0.c,0.t,0.i,0.v,0.e,0.a,0.c,0.c,0.o,0.u,0.n,0.t,undefined.d,undefined.e,undefined.f,undefined.a,undefined.u,undefined.l,undefined.t,undefined.c,undefined.a,undefined.r,undefined.d,

should produce /v0.1/recipient?include=active-account,default-card