sipgate-io / sipgateio-node

The official Node.js library for sipgate.io
MIT License
35 stars 7 forks source link

[Bug] Clean example and documentation of how to send a SMS #18

Closed bluepuma77 closed 1 year ago

bluepuma77 commented 1 year ago

Describe the bug Clean example and documentation of how to send a SMS

To Reproduce

  1. Use example from Sipgate.io website. Result: Error: Invalid extension: for string "s0".

  2. Follow sigateio-node documentation.

    interface ShortMessage {
    from: string;
    to: string;
    message: string;
    }

    What to put into from? Leave it empty? Put "sipgate" into the string? One of my fixed numbers? Result: Error: Cannot read properties of undefined (reading 'id')

  3. Wait, there is getAuthenticatedWebuserId and getSmsExtensions. Result: [], too bad.

  4. Finally there is sipgateio-node-examples Result with empty from: Error: Cannot read properties of undefined (reading 'id')

Expected behavior A clear and concise description of how to send a SMS without having a dedicated sender number.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

ramenbox commented 1 year ago

Hey bluepuma77,

this example worked fine for us with the SMS extension as s0. Furthermore, it's not possible to send an SMS without having a dedicated sender number.

Let us know if you've any further inquiries.

Kind regards

bluepuma77 commented 1 year ago

Ok, using a different SMS provider now, there you can just enter the sender as string.