Package me.aurous.vkapi.audio

Examples of me.aurous.vkapi.audio.AudioApi


    final int pos = url.lastIndexOf("/");
    final String ids = url.substring(pos + "/".length());
    final String formData = Utils.readFile(Constants.DATA_PATH
        + "settings/vkauth.dat", Charset.defaultCharset());

    final AudioApi api = new AudioApi(VkAuth.VK_APP_ID, formData.trim());
    final String parameters = String.format("audios=%s", ids);

    try {
      json = api.searchAudioByIdJson(parameters);
    } catch (final IOException e) {
      e.printStackTrace();
    }
    if (json.contains("\"response\":[0]")) {
      JOptionPane.showMessageDialog(UISession.getSearchWidget()
View Full Code Here


        .getSelectedItem().toString().equals("by title") ? 0 : 1;

    final String formData = Utils.readFile(Constants.DATA_PATH
        + "settings/vkauth.dat", Charset.defaultCharset());

    final AudioApi api = new AudioApi(VkAuth.VK_APP_ID, formData.trim());
    final String parameters = String
        .format("q=%s&auto_complete=1&sort=2&lyrics=0&count=%s&performer_only=%s",
            query, RESULT_LIMIT, PERFORMER_ONLY);

    try {
      final String json = api.searchAudioJson(parameters);
      if (json.contains("\"response\":[0]")) {
        JOptionPane.showMessageDialog(UISession.getSearchWidget()
            .getWidget(), "No results found!", "Error",
            JOptionPane.ERROR_MESSAGE);
        isSearching = false;
View Full Code Here

TOP

Related Classes of me.aurous.vkapi.audio.AudioApi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.