nexmo / server-sdk-specification Goto Github PK
View Code? Open in Web Editor NEWNexmo Client Library Guide
Nexmo Client Library Guide
Essential logging for me are:
These can be invaluable when debugging or when handling support queries.
In SPECIFICATION.md
: "Must set a user-agent with the following format: LIBRARY-NAME/LIBRARY-VERSION/LANGUAGE-VERSION"
This format is not compliant with the RFC7231 spec. Section 5.5.3 states that only NAME/VERSION is supported, not NAME/VERSION/VERSION (or any other variant). Multiple NAME/VERSION values are supported. Compliant example:
User-Agent: nexmo-dotnet/1.0 dotnet/1.0
I ran into this because .NET parses and validates the user-agent string before adding it to the request. It will not allow the string as required in the Nexmo client-library-specification.
Any thoughts on adopting a code of conduct for all the libraries?
Examples: http://contributor-covenant.org
README.md template is still lacking content for the Contributing section.
CONTRIBUTING.md template would be useful.
I've seen this so many times in support and via GitHub requests that making it very clear how to set up a proxy is an essential requirement. We should have a "How to set a Proxy" in the README too.
I'd generally make it part of the initialization for the library. If you can pass in custom HTTP clients then I'd have a standard interface that all custom clients must implement which includes setting a proxy.
It should be possible to generate a JWT with numerous and nested claims e.g.
{
"application_id": "dfsdf-sdfsd-sdf-sdfs-dfsfd-dfsdsd",
"nbf": 1483315200,
"exp": 1514764800,
"iat": 1483228800,
"acl": {
"paths": {
"/messages": {
"methods": ["POST"],
"filters": {
"from": "55555555555"
}
}
}
}
}
Please also note that application_id
may not always be a claim.
If a library uses a Nexmo client library it should be possible for that client to add additional information to the library user agent.
e.g. if the library user agent is nexmo-node/1.0.0/5.0
it should be possible to append information to that. For the Nexmo Command Line interface 1.0 release this may result in the user agent being nexmo-node/1.0.0/5.0/nexmo-cli/1.0.0
.
Related: Nexmo/nexmo-cli#38
Error response from API’s be translated to language specific error objects with same error codes and messages sent by API
I Couldn't see a function specified for updating your account settings like drCallBackUrl
and moCallBackUrl
https://developer.nexmo.com/api/developer/account#settings
Encoding on client library requirement should be documented based on the functionality of API. This is to ensure all characters in the text are sent successfully like for ex accented characters, extended characters from GSM Spec and unicode characters.
Is this universal for all entities like sms, voice etc.
Does nexmo API support unicode characters? If yes should the client library encode them in certain characterset? My assumption is to encode all text by UTF-8 only if the incoming text do not contain unicode characters - needs confirmation from the core eng team.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.