Skip to content

This is the basic SDK for your own application if you want to make use of BboxAPI services from Bbox Miami. Don't forget to ask credentials (AppID/AppSecret) via https://dev.bouyguestelecom.fr/dev/?page_id=51

License

Notifications You must be signed in to change notification settings

BboxLab/bboxapi-library

Repository files navigation

BBoxapi-library

Codacy Badge Download License

This is the basic SDK for your own application if you want to make use of BboxAPI services from Bbox Miami. Don't forget to ask credentials (AppID/AppSecret) via https://dev.bouyguestelecom.fr/dev/?page_id=51

Getting Started

1 -jcenter

compile 'fr.bouyguestelecom.dev:bboxapi:1.5.1'

2 -maven

<dependency>
  <groupId>fr.bouyguestelecom.dev</groupId>
  <artifactId>bboxapi</artifactId>
  <version>1.5.1</version>
  <type>pom</type>
</dependency>

Prerequisites

you need app_id and app_secret for some request if you don't have, you can get one at : https://dev.bouyguestelecom.fr/dev/?page_id=51

Example

Find bbox Automatically :

MyBboxManager bboxManager = new MyBboxManager();
MyBbox mBbox;

bboxManager.startLookingForBbox(context, new MyBboxManager.CallbackBboxFound() {
            @Override
            public void onResult(final MyBbox bboxFound) {
                // When we find our Bbox, we stopped looking for other Bbox.
                bboxManager.stopLookingForBbox();
                // We save our Bbox.
                mBbox = bboxFound;
                Log.i(TAG, "Bbox found: " + mBbox.getIp() + " macAdress: " + mBbox.getMacAddress());
            }
        });

get current channel :

Bbox.getInstance().getCurrentChannel(bbox.getIp(), getResources().getString(APP_ID),
getResources().getString(APP_SECRET),
new IBboxGetCurrentChannel() {
    @Override
    public void onResponse(final Channel channel) {
        System.out.println("status = " + channel.getMediaState());
        System.out.println("pos = " + channel.getPositionId());
        System.out.println("name = " + channel.getName());
        System.out.println("title = " + channel.getMediaTitle());
    }
    @Override
    public void onFailure(Request request, int errorCode) {
        Log.i("notif", "Get current channel failed");
    }
});

Authors

About

This is the basic SDK for your own application if you want to make use of BboxAPI services from Bbox Miami. Don't forget to ask credentials (AppID/AppSecret) via https://dev.bouyguestelecom.fr/dev/?page_id=51

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages