GithubHelp home page GithubHelp logo

africastalkingltd / africastalking-java Goto Github PK

View Code? Open in Web Editor NEW
32.0 9.0 46.0 551 KB

Official Java SDK

Home Page: https://developers.africastalking.com

License: MIT License

Java 95.22% CSS 1.19% JavaScript 1.46% Handlebars 2.13%
sms api voice ussd airtime africastalking

africastalking-java's People

Contributors

aksalj avatar donald-jackson avatar kevokevoh avatar lemmah avatar osleonard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

africastalking-java's Issues

Facing an issue when installing

I am trying to install this as a maven dependency using the instructions on the repo. I get this error

Could not find artifact com.github.AfricasTalkingLtd.africastalking-java:core:pom:3.4.9 in jitpack.io (https://jitpack.io) Could not find artifact com.github.AfricasTalkingLtd.africastalking-java:core:pom:3.4.9 in jitpack.io (https://jitpack.io)

Can anyone provide any direction on this? I have tried it on Java 19 and on Java 11 with a previous version.

Thanks.

SessionId is missing in CallResponse pojo

When I initiate a call like this :

CallResponse callResponse = voiceService.call(sendMessageDto.getPhoneNumber(), africasTalkingKeyProvider.getAfricasTalkingCallerId());

The CallResponse Pojo does not include the sessionId which is actual present in the HTTP response going by the documentation here : https://build.at-labs.io/docs/voice/make_call

I think sessionIds should be included in CallResponse so that clients can respond with the right message (handle call phase) based on sessionId when a notification is sent to the callback url

Could Not Resolve Dependencies For Project

Hi. I was trying to add the 3.4.8 version to my java project using maven but I am facing this message:
Could not find artifact com.github.AfricasTalkingLtd.africastalking-java:core:jar:3.4.8 in jitpack.io (https://jitpack.io) -> [Help 1]

I had double checked with your documentation and also checked jitpack to see the status of your dependency, everything seems fine. But as I add it to my project and it starts downloading this version, it shows the above message.

Can you help us? :)
Warmest regards

The `fetchSubscriptions` method not return data

Hello, the fetchSubscriptions method of class SmsService does not return Subscription data.

List<Subscription> subscriptions = smsService.fetchSubscriptions(shortCode, keyword);

The response log displays the data correctly.

<-- 200 OK https://api.sandbox.africastalking.com/version1/subscription?username=sandbox&shortCode=9043&keyword=nouchi&lastReceivedId=0 (2507ms)
Server: akka-http/10.0.5
Date: Fri, 12 Apr 2019 16:32:59 GMT
Content-Type: application/json
Content-Length: 92
{"responses":[{"id":2007740,"phoneNumber":"+22589349055","date":"2019-04-12T14:06:38.000"}]}
<-- END HTTP (92-byte body)

I'm sandbox mode.

Artifact ID

Hi,

Please change artifact id from core to com.africastalking . Using core is not good standards and its just good practice to name a dependency jar file the name of the package in the jar file

Bump-up Gradle Version

Bumping up the gradle version will help utilizing the latest gradle 8.6 features to optimize the build of the library.

Null pointer exception while trying to send sms in sandbox

I got a null pointer exception. It is better to handle this exception and let us know why it is failing.

Here is request:
AfricasTalking.initialize("sandbox", "myAPI key");
List response = sms.send("Hello, testing africash sms from JP!","mysenderID", new String[]{"+23480333XXXX"}, true);

Response:
2021-07-31 12:51:57.504 ERROR 70546 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

java.lang.NullPointerException: null
at com.africastalking.SmsService.send(SmsService.java:102) ~[core-3.4.8.jar:3.4.7]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.