1 unstable release

0.4.3 Aug 20, 2024
0.4.2 Apr 20, 2024
0.3.9 Oct 26, 2023
0.2.15 Oct 23, 2023
0.1.2 Sep 26, 2023

#319 in Asynchronous

Download history 184/week @ 2024-07-23 148/week @ 2024-08-20 6/week @ 2024-09-10 3/week @ 2024-09-17 92/week @ 2024-09-24 11/week @ 2024-10-01

1,781 downloads per month

MIT license

150KB
4K SLoC

VkApi2

Crates.io Donate Crates.io

Async Rust wrapper of vk

Please fell free to contribute

create api:

let api = VkApi::new(Some("service_key"), Some("group_key"), Some("flow_key"), Some("version, default is 5.131"))

call function:

let response = vkapi2::account::methods::get_info(
  &api,
  Some(GetInfoOptions {
      lang: true,
      country: true,
      ..Default::default()
  }),
)
//or
let v = vkapi2::account::methods::get_info(&api, None).await?;

And get your results

 println!("{:?}", v.country);

  • Account

    • account.ban
    • account.changePassword
    • account.getActiveOffers
    • account.getAppPermissions
    • account.getBanned
    • account.getCounters
    • account.getInfo
    • account.getProfileInfo
    • account.getPushSettings
    • account.lookupContacts
    • account.registerDevice
    • account.saveProfileInfo
    • account.setInfo
    • account.setNameInMenu
    • account.setOffline
    • account.setOnline
    • account.setPushSettings
    • account.setSilenceMode
    • account.unban
    • account.unregisterDevice
  • Ads

    • ads.addOfficeUsers
    • ads.checkLink
    • ads.createAds
    • ads.createCampaigns
    • ads.createClients
    • ads.createLookalikeRequest
    • ads.createTargetGroup
    • ads.createTargetPixel
    • ads.deleteAds
    • ads.deleteCampaigns
    • ads.deleteClients
    • ads.deleteTargetGroup
    • ads.deleteTargetPixel
    • ads.getAccounts
    • ads.getAds
    • ads.getAdsLayout
    • ads.getAdsPostsReach
    • ads.getAdsTargeting
    • ads.getBudget
    • ads.getCampaigns
    • ads.getCategories
    • ads.getClients
    • ads.getDemographics
    • ads.getFloodStats
    • ads.getLookalikeRequests
    • ads.getMusicians
    • ads.getMusiciansByIds
    • ads.getOfficeUsers
    • ads.getPostsReach
    • ads.getRejectionReason
    • ads.getStatistics
    • ads.getSuggestions
    • ads.getTargetGroups
    • ads.getTargetPixels
    • ads.getTargetingStats
    • ads.getUploadURL
    • ads.getVideoUploadURL
    • ads.importTargetContacts
    • ads.removeOfficeUsers
    • ads.removeTargetContacts
    • ads.saveLookalikeRequestResult
    • ads.shareTargetGroup
    • ads.updateAds
    • ads.updateCampaigns
    • ads.updateClients
    • ads.updateOfficeUsers
    • ads.updateTargetGroup
    • ads.updateTargetPixel
  • AppWidgets

    • appWidgets.getAppImageUploadServer
    • appWidgets.getAppImages
    • appWidgets.getGroupImageUploadServer
    • appWidgets.getGroupImages
    • appWidgets.getImagesById
    • appWidgets.saveAppImage
    • appWidgets.saveGroupImage
    • appWidgets.update
  • Apps

    • apps.addUsersToTestingGroup
    • apps.deleteAppRequests
    • apps.get
    • apps.getCatalog
    • apps.getFriendsList
    • apps.getLastUploadedVersion
    • apps.getLeaderboard
    • apps.getMiniAppPolicies
    • apps.getScopes
    • apps.getScore
    • apps.getTestingGroups
    • apps.isNotificationsAllowed
    • apps.promoHasActiveGift
    • apps.promoUseGift
    • apps.removeTestingGroup
    • apps.removeUsersFromTestingGroups
    • apps.sendRequest
    • apps.updateMetaForTestingGroup
  • Asr

    • asr.checkStatus
    • asr.getUploadUrl
    • asr.process
  • Auth

    • auth.checkPhone
    • auth.restore
  • Board

    • board.addTopic
    • board.closeTopic
    • board.createComment
    • board.deleteComment
    • board.deleteTopic
    • board.editComment
    • board.editTopic
    • board.fixTopic
    • board.getComments
    • board.getTopics
    • board.openTopic
    • board.restoreComment
    • board.unfixTopic
  • Bugtracker

    • bugtracker.addCompanyGroupsMembers
    • bugtracker.addCompanyMembers
    • bugtracker.changeBugreportStatus
    • bugtracker.createComment
    • bugtracker.getBugreportById
    • bugtracker.getCompanyGroupMembers
    • bugtracker.getCompanyMembers
    • bugtracker.getDownloadVersionUrl
    • bugtracker.getProductBuildUploadServer
    • bugtracker.removeCompanyGroupMember
    • bugtracker.removeCompanyMember
    • bugtracker.saveProductVersion
    • bugtracker.setCompanyMemberRole
    • bugtracker.setProductIsOver
  • Calls

    • calls.forceFinish
    • calls.start
  • Database

    • database.getChairs
    • database.getCities
    • database.getCitiesById
    • database.getCountries
    • database.getCountriesById
    • database.getFaculties
    • database.getMetroStations
    • database.getMetroStationsById
    • database.getRegions
    • database.getSchoolClasses
    • database.getSchools
    • database.getUniversities
  • Docs

    • docs.add
    • docs.delete
    • docs.edit
    • docs.get
    • docs.getById
    • docs.getMessagesUploadServer
    • docs.getTypes
    • docs.getUploadServer
    • docs.getWallUploadServer
    • docs.save
    • docs.search
  • Donut

    • donut.getFriends
    • donut.getSubscription
    • donut.getSubscriptions
    • donut.isDon
  • DownloadedGames

    • downloadedGames.getPaidStatus
  • Fave

    • fave.addArticle
    • fave.addLink
    • fave.addPage
    • fave.addPost
    • fave.addProduct
    • fave.addTag
    • fave.addVideo
    • fave.editTag
    • fave.get
    • fave.getPages
    • fave.getTags
    • fave.markSeen
    • fave.removeArticle
    • fave.removeLink
    • fave.removePage
    • fave.removePost
    • fave.removeProduct
    • fave.removeTag
    • fave.removeVideo
    • fave.reorderTags
    • fave.setPageTags
    • fave.setTags
    • fave.trackPageInteraction
  • Friends

    • friends.add
    • friends.addList
    • friends.areFriends
    • friends.delete
    • friends.deleteAllRequests
    • friends.deleteList
    • friends.edit
    • friends.editList
    • friends.get
    • friends.getAppUsers
    • friends.getAvailableForCall
    • friends.getByPhones
    • friends.getLists
    • friends.getMutual
    • friends.getOnline
    • friends.getRecent
    • friends.getRequests
    • friends.getSuggestions
    • friends.search
  • Gifts

    • gifts.get
  • Groups

    • groups.addAddress
    • groups.addCallbackServer
    • groups.addLink
    • groups.approveRequest
    • groups.ban
    • groups.create
    • groups.deleteAddress
    • groups.deleteCallbackServer
    • groups.deleteLink
    • groups.disableOnline
    • groups.edit
    • groups.editAddress
    • groups.editCallbackServer
    • groups.editLink
    • groups.editManager
    • groups.editPlace
    • groups.enableOnline
    • groups.get
    • groups.getAddresses
    • groups.getBanned
    • groups.getById
    • groups.getCallbackConfirmationCode
    • groups.getCallbackServerSettings
    • groups.getCallbackServers
    • groups.getCallbackSettings
    • groups.getCatalog
    • groups.getCatalogInfo
    • groups.getInvitedUsers
    • groups.getInvites
    • groups.getLongPollServer
    • groups.getLongPollSettings
    • groups.getMembers
    • groups.getOnlineStatus
    • groups.getRequests
    • groups.getSettings
    • groups.getTagList
    • groups.getTokenPermissions
    • groups.invite
    • groups.isMember
    • groups.join
    • groups.leave
    • groups.removeUser
    • groups.reorderLink
    • groups.search
    • groups.setCallbackSettings
    • groups.setLongPollSettings
    • groups.setSettings
    • groups.setUserNote
    • groups.tagAdd
    • groups.tagBind
    • groups.tagDelete
    • groups.tagUpdate
    • groups.toggleMarket
    • groups.unban
  • LeadForms

    • leadForms.create
    • leadForms.delete
    • leadForms.get
    • leadForms.getLeads
    • leadForms.getUploadURL
    • leadForms.list
    • leadForms.update
  • Likes

    • likes.add
    • likes.delete
    • likes.getList
    • likes.isLiked
  • Market

    • market.add
    • market.addAlbum
    • market.addProperty
    • market.addPropertyVariant
    • market.addToAlbum
    • market.createComment
    • market.delete
    • market.deleteAlbum
    • market.deleteComment
    • market.deleteProperty
    • market.deletePropertyVariant
    • market.edit
    • market.editAlbum
    • market.editComment
    • market.editOrder
    • market.editProperty
    • market.editPropertyVariant
    • market.filterCategories
    • market.get
    • market.getAlbumById
    • market.getAlbums
    • market.getById
    • market.getCategories
    • market.getComments
    • market.getGroupOrders
    • market.getOrderById
    • market.getOrderItems
    • market.getOrders
    • market.groupItems
    • market.removeFromAlbum
    • market.reorderAlbums
    • market.reorderItems
    • market.report
    • market.reportComment
    • market.restore
    • market.restoreComment
    • market.search
    • market.searchItems
    • market.searchItemsBasic
    • market.ungroupItems
  • Messages

    • messages.addChatUser
    • messages.allowMessagesFromGroup
    • messages.createChat
    • messages.delete
    • messages.deleteChatPhoto
    • messages.deleteConversation
    • messages.deleteReaction
    • messages.denyMessagesFromGroup
    • messages.edit
    • messages.editChat
    • messages.forceCallFinish
    • messages.get
    • messages.getByConversationMessageId
    • messages.getById
    • messages.getChat
    • messages.getChatPreview
    • messages.getChatUsers
    • messages.getConversationMembers
    • messages.getConversations
    • messages.getConversationsById
    • messages.getDialogs
    • messages.getHistory
    • messages.getHistoryAttachments
    • messages.getImportantMessages
    • messages.getIntentUsers
    • messages.getInviteLink
    • messages.getLastActivity
    • messages.getLongPollHistory
    • messages.getLongPollServer
    • messages.getMessagesReactions
    • messages.getReactedPeers
    • messages.getReactionsAssets
    • messages.isMessagesFromGroupAllowed
    • messages.joinChat
  • Status

    • status.set
    • status.get
  • Users

    • users.report
    • users.get
    • users.getFollowers
  • Podcasts

    • Podcasts.searchPodcast
  • Notes

    • notes.delete
    • notes.edit
    • notes.deleteComment
    • notes.restoreComment
  • Photos

    • photos.confirmTag
    • photos.move
    • photos.removeTag
    • photos.reorderAlbums
    • photos.reorderPhotos
  • Utils

    • utils.checkLink
    • utils.deleteFromLastShortened
    • utils.getLastShortenedLinks
    • utils.getServerTime
    • utils.getShortLink
    • utils.getLinkStats
    • getStatisticsUrl - not a vkapi method, used for get shortened url statistics url
    • utils.resolveScreenName
  • Wall

    • Wall.checkCopyrightLink
    • Wall.closeComments
    • Wall.openComments
    • Wall.restore
    • Wall.restoreComment
    • Wall.unpin
    • Wall.delete
    • Wall.deleteComment
    • Wall.reportComment
    • Wall.reportPost
  • Orders

    • Orders.updateSubscription
  • Streaming

    • Streaming.getStem
    • Streaming.getSettings
    • Streaming.setSettings
  • Stories

    • Stories.hideReply
  • Video

    • Video.deleteComment
    • Video.reportComment
    • Video.restoreComment
    • Video.restore

Dependencies

~4–16MB
~221K SLoC