however i just need to get data from shadow, is there anyother way or library to use ?
you can use any library that can connect to aws iot, odelot's in my case.
getting data from the shadows is simply subscribing to the shadow. when a shadow is changed, it will publish its value.