Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get multiple phonebook contacts #132

Closed
Inglebard opened this issue Jun 21, 2023 · 2 comments
Closed

Get multiple phonebook contacts #132

Inglebard opened this issue Jun 21, 2023 · 2 comments

Comments

@Inglebard
Copy link

Hi,

I would like to retrieve all number of my phonebook.

On OVH manager, they can pass 50 contacts IDs like this : /engine/apiv6/sms/{sms-account}/phonebooks/{phonebook}/phonebookContact/{id1},{id2},{id3},{id4},{id5},...

On the API, I can only pass one ID.

I need to retrieve 1000 numbers, and it is slow.

Is there something not documented where I can pass multiple IDs like in the OVH manager interface ?

@a-beudin
Copy link

Hi,

You can add the "X-Ovh-Batch:," header to your request this way the request /sms/{sms-account}/phonebooks/{phonebook}/phonebookContact/{id1},{id2},{id3},{id4},{id5} should work.

However, please take note that we don't guarantee this feature will continue to work in the long term as it is not a documented feature and we may change the way batch calls work in the future.

@Inglebard
Copy link
Author

Hi,
Thanks.
Faster than ever. I hope this hidden feature will stay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants